Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.41k stars 1.99k forks source link

Page List block displays HTML entities in editor #61550

Open goblinartificer opened 2 years ago

goblinartificer commented 2 years ago

Quick summary

image

This is how a page displays if its title is &"qwerty"⁠—, in the Page List block. This only occurs in the editor, and it looks correct on the live site.

Steps to reproduce

  1. Publish a new page or two with a title containing some ampersands, quote marks (angled or straight, single or double), or nonbreaking spaces.
  2. Add a Page List block to another page.

What you expected to happen

In the editor, the title should display exactly how it does in the page list and on the live site.

What actually happened

At least some characters are displayed as character entities.

Context

Reported in #34428415-hc and replicated on both simple and AT test sites.

Simple, Atomic or both?

Simple, Atomic

Theme-specific issue?

No response

Browser, operating system and other notes

Here are the three cases I observed/tested:

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

No but the platform is still usable

Workaround details

It's perfectly fine when published, so just annoying in the editor with no real impact otherwise.

thekingsprojects commented 2 years ago

Another case here: 34502904-hc

Site is Atomic. It's showing "smart/curly quotes" and an ellipsis character as HTML entities.

kimerlin81 commented 2 years ago

Thanks @goblinartificer! This issue has been triaged as I was able to reproduce it on my test sites today.

jordesign commented 2 years ago

Noting there is an open issue in Gutenberg for this - we'll keep an eye on that. https://github.com/WordPress/gutenberg/issues/38733