Skip to content

Doubly-escaped HTML special characters in Plain Text blocks, also in old posts #286

@mschmitt

Description

@mschmitt

Steps to Reproduce

  1. Create a Syntaxhighligher block containing the following:
<foo>
bar &
  1. Choose type "Plain Text".
  2. Preview or publish

What I Expected

Content displayed as:

<foo>
bar &

What Happened Instead

Content displayed as:

&lt;foo>
bar &amp;

PHP / WordPress / SyntaxHighlighter Evolved version

  • Debian 12
  • PHP 8.2
  • WordPress 6.7.2 running Twenty Fourteen theme
  • SyntaxHighlighter Evolved 3.7.2

Browser / OS version

  • Any browser on any OS

Screenshot / Video

A degraded public post from 2024: https://binblog.de/2024/03/04/failsafe-curl/ (No longer visible. Blog rolled back to 3.7.1.)

Reproducer from above:

Image

Context / Source

Noticed just recently. Display degraded on all existing posts. Rolled back to version 3.7.1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions