[wp-trac] [WordPress Trac] #64274: wp.sanitize.stripTags could rely on the browser for HTML parsing
WordPress Trac
noreply at wordpress.org
Mon Mar 2 19:50:20 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:"61783" 61783]:
{{{
#!CommitTicketReference repository="" revision="61783"
General: Update `wp.sanitize.stripTags()` to return empty string when not
passed a string.
Developed in https://github.com/WordPress/wordpress-develop/pull/10994
Follow-up to r61585, r61578.
Props westonruter, jonsurrell, dmsnell, hugod.
See #64574, #64274.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64274#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list