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

Navigation Block: Creating a draft page with “&” results in HTML Entities #30111

Closed
annezazu opened this issue Mar 22, 2021 · 1 comment · Fixed by #41063
Closed

Navigation Block: Creating a draft page with “&” results in HTML Entities #30111

annezazu opened this issue Mar 22, 2021 · 1 comment · Fixed by #41063
Assignees
Labels
[Block] Navigation Affects the Navigation Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@annezazu
Copy link
Contributor

Description

When using the Create Draft feature in the navigation block, if you add &, it results in a draft being created showing the HTML entities for ampersand instead of &.

This came up as part of feedback for the third round of testing for the FSE Outreach Program.

Step-by-step reproduction instructions

  1. Add the navigation block.
  2. Add a new menu item.
  3. Select adding a new link and begin typing the title of a page that doesn't exist. When you do so, include &.
  4. Select the option to create a page draft.
  5. See that the menu item doesn't show ampersand.

Expected behaviour

The & would show in the navigation block.

Actual behaviour

HTML entities were shown in the navigation block.

Screenshots or screen recording (optional)

ampersand.test.mov

WordPress information

  • WordPress version: 5.7
  • Gutenberg version: 10.2
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? TT1 Blocks

Device information

  • Device: Desktop
  • Operating system: MacOS
  • Browser: Chrome Version 88.0.4324.192
@annezazu annezazu added [Type] Enhancement A suggestion for improvement. [Block] Navigation Affects the Navigation Block [Type] Bug An existing feature does not function as intended and removed [Type] Enhancement A suggestion for improvement. labels Mar 22, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Mar 24, 2021
@annezazu
Copy link
Contributor Author

annezazu commented Feb 7, 2022

This continues to happen in 5.9 and the above PR has staled:

ampersand.mov

Nudged on the PR in case it helps and adding to Nav block project board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
2 participants