[wp-trac] [WordPress Trac] #64274: wp.sanitize.stripTags could rely on the browser for HTML parsing
WordPress Trac
noreply at wordpress.org
Mon Feb 2 18:39:28 UTC 2026
#64274: wp.sanitize.stripTags could rely on the browser for HTML parsing
-------------------------+-------------------------
Reporter: dmsnell | Owner: dmsnell
Type: enhancement | Status: closed
Priority: normal | Milestone: 7.0
Component: General | Version: 4.2
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: javascript
-------------------------+-------------------------
Comment (by westonruter):
In [changeset:"61578" 61578]:
{{{
#!CommitTicketReference repository="" revision="61578"
General: Preserve back-compat for `wp.sanitize.stripTags()` to return
empty string when passed `null`/`undefined`.
This also bumps the `esversion` to 11 in `tests/qunit/.jshintrc` to match
the root `.jshintrc`, following [61544] for #64562.
Follow-up to [61347], [60907].
Props westonruter, jonsurrell, mukesh27, hugod.
See #64274.
Fixes #64574.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64274#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list