[wp-trac] [WordPress Trac] #54232: Unbreakable spaces not escaped
WordPress Trac
noreply at wordpress.org
Fri Oct 8 04:24:13 UTC 2021
#54232: Unbreakable spaces not escaped
-------------------------------------+-------------------------------------
Reporter: jdy68 | Owner: audrasjb
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.9
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: needs-patch has- | Focuses: javascript,
screenshots | administration
-------------------------------------+-------------------------------------
Comment (by mukesh27):
Replying to [comment:5 SergeyBiryukov]:
>
> I was able to reproduce the issue with that string in the latest
Microsoft Edge version using these steps:
> * Switch to the fr_FR locale.
> * Open an image in Media Library for editing.
> * Make some changes and click the Cancel button.
> * Note the ` ` entities in the message.
>
> The string is retrieved for displaying using the jQuery `.html()`
function in [source:tags/5.8.1/src/js/_enqueues/lib/image-
edit.js?marks=896-898#L879 wp-admin/js/image-edit.js]. Replacing `.html()`
with `.text()` fixes the issue in my testing.
I reproduce the issue with the same step and replacing `.html()` with
`.text()` fixes the issue in my test.
Let me add patch so other can test it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54232#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list