Skip to content
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: & converts to & in page title #40499

Closed
xpurichan opened this issue Mar 26, 2020 · 10 comments
Closed

Gutenberg: & converts to & in page title #40499

xpurichan opened this issue Mar 26, 2020 · 10 comments

Comments

@xpurichan
Copy link

Steps to reproduce

  1. Use any WPcom simple site
  2. Create a new page/post and write a page title, use the & symbol in the page title
  3. Publish the page
  4. Note how & is converted & in the editor as shown here:
    Screen Shot 2020-03-26 at 5 31 31 PM

(Note that & still appears normally on the actual website, it only appears as & in the editor from the moment the page is published.)

I was only able to replicate this on simple sites, and I believe it's related to the recent Gutenberg update. I couldn't replicate on an Atomic site even after I updated Gutenberg to version 7.8.0

What I expected

& should display as itself

What happened instead

& should not be converted to &

Browser / OS version

N/A

Context / Source

Found while I was testing some issues with the Media & Text block, not user reported.

#manual-testing

@lancewillett lancewillett added [Feature] Post/Page Editor The editor for editing posts and pages. [Type] Bug labels Mar 26, 2020
@simison
Copy link
Member

simison commented Apr 3, 2020

Title migration for all sites wasn't finished when we upgraded, hence these popping up when customers open editors for non-migrated sites.

This should get fixed on its own as the migration script progresses (could already be done for this site).

pbAok1-f8-p2#comment-1108

@andrewserong
Copy link
Member

I think this particular one is an ongoing issue that needs to be resolved in Gutenberg (getting the editor to decode expected encoded entities created by users that don't have the unfiltered_html capability). It's logged upstream here: WordPress/gutenberg#20490

@supernovia
Copy link
Contributor

Thanks @arunsathiya ! I'd searched but somehow missed this one anyhow.

@cathymcbride
Copy link
Contributor

As mentioned above, this is logged upstream here: WordPress/gutenberg#20490. Closing.

@mrfoxtalbot
Copy link

mrfoxtalbot commented Sep 3, 2021

This seems to be still an issue on simple sites, not just with "&" but with other characters too.

Simple site mrfoxtestingsite.wordpress.com:
Screen Capture on 2021-09-03 at 11-35-02

I did a quick test on a AT and on self-hosted sites and it works fine there.

Self-hosted (local, with and without the Gutenberg plugin):
Screen Shot on 2021-09-03 at 11:38:56

Atomic (with and without the Gutenberg plugin) mystoreadminpractice.blog:
Screen Shot on 2021-09-03 at 11:38:31

I am going to reopen this issue and move it to the triaging board

@mrfoxtalbot mrfoxtalbot reopened this Sep 3, 2021
@mrfoxtalbot mrfoxtalbot added this to Needs triage in HE Triaging Board (new bugs) Sep 3, 2021
@inaikem
Copy link
Contributor

inaikem commented Sep 7, 2021

I was able to replicate. @dpasque, pinging to get your attention!

@inaikem inaikem moved this from Needs triage to Triaged in HE Triaging Board (new bugs) Sep 7, 2021
@simison
Copy link
Member

simison commented Sep 7, 2021

This seems to be still an issue on simple sites, not just with "&" but with other characters too.

If this issue was closed for a year already, this is likely a new occurrence of the same problem? @WunderBart @fullofcaffeine can this be due Gutenberg upgrade?

@dpasque
Copy link
Contributor

dpasque commented Sep 7, 2021

Tagging @Automattic/flow-patrol-create based on issue content. Will also ping internally.

@dpasque dpasque moved this from Triaged to Prioritized - Bugs in HE Triaging Board (new bugs) Sep 7, 2021
@mreishus
Copy link
Contributor

I was not able to reproduce this on a newly created simple site:

Peek.2021-09-14.15-38-encoding-title.mp4

@mrfoxtalbot , is the issue still happening for you?

@mrfoxtalbot
Copy link

mrfoxtalbot commented Sep 15, 2021

Thank you for checking @mreishus. I am no longer able to reproduce the issue on a simple site. I'm marking this as solved.

HE Triaging Board (new bugs) automation moved this from Prioritized - Bugs to Closed Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Pri] High [Type] Bug
Development

No branches or pull requests

10 participants