[wp-trac] [WordPress Trac] #64274: wp.sanitize.stripTags could rely on the browser for HTML parsing

WordPress Trac noreply at wordpress.org
Tue Feb 3 20:08:16 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:"61585" 61585]:
 {{{
 #!CommitTicketReference repository="" revision="61585"
 General: Further preserve back-compat for `wp.sanitize.stripTags()` to
 return empty string when falsy value supplied.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10856

 Follow-up to [61578], [61347], [60907].

 Props jonsurrell, hugod, westonruter.
 See #64274.
 Fixes #64574.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64274#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list