Opened 4 hours ago
Closed 3 hours ago
#64973 closed defect (bug) (reported-upstream)
Search block converts quotation marks to ampersand entity in prefilled value after search
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 6.9.4 |
| Component: | Editor | Keywords: | |
| Focuses: | Cc: |
Description
When the Search block is present on the page that displays search results, the text the user entered in their search is prefilled in the form when displaying the search results.
This is great, but I've noticed that if you search a phrase by putting it in quotation marks, the quotation marks are rendered in the search input field as " (the ampersand entity for a quotation mark) instead of " after submitting the search.
This is happening because the actual string in the value attribute of the input field HTML is "; in other words, it's being double-escaped.
(I'm probably selecting the wrong "Component" on this ticket but I'm not sure where it really should go.)
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi and welcome to WordPress Core Trac! Thanks for the report.
This is already reported in GB76010, and GB76023 fixed it in the plugin as of Gutenberg 22.7. However, the change apparently is not merged into core yet (for WordPress 7.0-RC2).