-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gutenberg: Ampersand character (&) in title displays & in editor and message #29391
Comments
This is still reproducible with Gutenframe. |
Another report of this here: 15802960-hc |
Still reproducible on wpcom. This is a wpcom issue only. #27825 may be related |
This is an escaping issue and applies to other entities as well. The data displayed in the areas affected is coming from the post revision data, which hasn't been normalized like the post data itself is (ie, Working on a fix from that angle. |
Maybe related to #38362 which was solved recently in WordPress/gutenberg#19187 |
It looks like you're right; I'll open up a PR in Gutenberg for the sidebar link after publish. The revisions escaping issue might be applicable to #27825 |
We have a similar issue happening with apostrophes: 2583624-zen |
I think we can apply the same fix than WordPress/gutenberg#19187 and replace
Yeah, it could help. But it seems the closing quote gets replaced with an HTML-encoded on the published view, so I wouldn't discard KSES as the cause of #27825. |
Title issue fixed by @glendaviesnz in WordPress/gutenberg#19187. The publish link should be fixed in WordPress/gutenberg#19517 |
closing this out for now, we should pick up the other publish link fix in the next update round |
Tested that this happens in both wp-admin and Calypso Gutenberg for a simple site. It didn't happen on Gutenberg master (see screenshot below) or wp-admin on a Jetpack site
Steps to reproduce
What I expected
Title in editor and message shouldn't contain & as per Gutenberg core and Calypso Classic
What happened instead
Title in editor and message shows &
Browser / OS version
Chrome 70 on macOS
Screenshot / Video
Calypso:
wp-admin:
Gutenberg Master:
Calypso Classic Editor:
Context / Source
#dogfooding
The text was updated successfully, but these errors were encountered: