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

WordPress Trac noreply at wordpress.org
Wed Dec 3 18:08:11 UTC 2025


#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
-------------------------+-------------------------
Changes (by westonruter):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61347" 61347]:
 {{{
 #!CommitTicketReference repository="" revision="61347"
 General: Leverage `DOMParser` to implement `wp.sanitize.stripTags()`.

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

 Follow-up to [60907].

 Props hbhalodia, dmsnell, westonruter.
 See #48054.
 Fixes #64274.
 }}}

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


More information about the wp-trac mailing list