[wp-trac] [WordPress Trac] #48054: wp.sanitize.stripTags should iterate instead of using recursion

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


#48054: wp.sanitize.stripTags should iterate instead of using recursion
------------------------------------+--------------------------------------
 Reporter:  jrchamp                 |       Owner:  westonruter
     Type:  enhancement             |      Status:  closed
 Priority:  normal                  |   Milestone:  6.9
Component:  General                 |     Version:  5.2.3
 Severity:  minor                   |  Resolution:  fixed
 Keywords:  has-patch has-test-     |     Focuses:  javascript, performance
  info                              |
------------------------------------+--------------------------------------

Comment (by westonruter):

 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/48054#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list