[wp-trac] [WordPress Trac] #64274: wp.sanitize.stripTags could rely on the browser for HTML parsing
WordPress Trac
noreply at wordpress.org
Wed Nov 19 02:28:06 UTC 2025
#64274: wp.sanitize.stripTags could rely on the browser for HTML parsing
--------------------------+-----------------------------
Reporter: dmsnell | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+-----------------------------
Changes (by westonruter):
* milestone: Awaiting Review => Future Release
Old description:
> This JavaScript function recreates emblematic problems in HTML parsing by
> relying on over-simplified regular expressions. It runs, however, inside
> a browser where a reliable HTML parser exists, and so could or should
> lean on that parser in order to operate.
New description:
This JavaScript function recreates emblematic problems in HTML parsing by
relying on over-simplified regular expressions. It runs, however, inside a
browser where a reliable HTML parser exists, and so could or should lean
on that parser in order to operate.
See [https://github.com/dmsnell/wordpress-
develop/commit/3865859fd8982575204bc04e77197ea4c743ccf5#r170824354
discussion]. Follow-up to [60907] for #48054.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64274#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list