-
Notifications
You must be signed in to change notification settings - Fork 3
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
Escaped typography markup in URL autocomplete (Gutenberg) #245
Comments
That's a Gutenberg bug. The REST-API search endpoint intentionally uses |
@mundschenk-at: Would you recommend that I create an issue in the Gutenberg issue tracker for this? |
Only if it still happens with the current development release of the Gutenberg plugin, otherwise it should be reported in the WordPress.org trac. I can't say how quickly it will be fixed (so I may create a workaround in the next release anyway), but it should be reported there. |
@strarsis Have you opened a ticket? |
@mundschenk-at: No, I haven't yet. I have been unsure whether you or me should create it. 😸 |
@strarsis Feel free to create the ticket. I'll comment with any follow-up information. |
Now I encountered this issue, too, in a different context. I use |
Probably because the REST API is its own thing, and Gutenberg uses the |
@mundschenk-at: Any workaround for this until Gutenberg fixes this issue? I use the filter in the theme, it should not interfere with the backend. |
You can use the |
Issue Overview
In Gutenberg editor the URL autocomplete for links shows escaped markup for
typography (e.g.
<span class="amp">&</span>
).Either the raw HTML markup should be somehow injected (so it is not escaped) or
the page names shouldn't be filtered at all.
Steps to Reproduce (for bugs)
process (
&
is a good example as this should be handled by default).Expected Behavior
No escaped HTML in URL autocompletion.
Current Behavior
Escaped HTML in URL autocompletion.
Possible Solution
Related Issues and/or PRs
#229
The text was updated successfully, but these errors were encountered: