Skip to content

Code with non-ASCII characters results in character duplication #400

@westonruter

Description

@westonruter

As reported in the support forum, given post content that contains this markup:

<!-- wp:code -->
<pre class="wp-block-code"><code>if (FELTÉTEL)
{
  IGAZ ÁG
}
else
{
  HAMIS ÁG
}</code></pre>
<!-- /wp:code -->

The result on the frontend is:

image

Note how “ÁG” shows up as “ÁGG”, and how “FELTÉTEL” ends up as “FELTÉTELL”. The last character is duplicated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamAn issue related to a problem on a dependency of this plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions