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

" " is converted to " " when using the link UI #12512

Open
ZebulanStanphill opened this Issue Dec 2, 2018 · 1 comment

Comments

Projects
None yet
4 participants
@ZebulanStanphill
Copy link
Contributor

ZebulanStanphill commented Dec 2, 2018

The issue

When trying to add a link to this string of raw text:  , the text is converted into  .

Reproduction steps

  1. Edit a Paragraph block as HTML.
  2. Replace the content between the <p> tags with the following: &amp;nbsp;.
  3. Switch back to editing the block visually.
  4. Select the entire string of text.
  5. Click the Link button in the block toolbar.
  6. Enter # as the URL and press Enter.
  7. Edit the block as HTML.
  8. Notice that the content has been modified and is now <a href="#">&nbsp;</a>.

Expected behavior

After adding a link, the content between the <p> tags should be <a href="#">&amp;nbsp;</a>.

Environment

  • OS: Antergos Linux
  • Browser: Firefox Developer Edition 64.0b14
  • WordPress: 4.9.8
  • Gutenberg: 4.6.1
@kcalkmc

This comment has been minimized.

Copy link

kcalkmc commented Dec 9, 2018

Testing using WP 5.0, Windows 7, Chrome.
Duplicated reported issue,

wp-issue-12512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment