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

WordPress Trac noreply at wordpress.org
Wed Nov 19 00:38:16 UTC 2025


#64274: wp.sanitize.stripTags could rely on the browser for HTML parsing
--------------------------+-----------------------------
 Reporter:  dmsnell       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This JavaScript function recreates emblematic problems in HTML parsing by
 relying on over-simplified regular expressions. It runs, however, inside a
 browser where a reliable HTML parser exists, and so could or should lean
 on that parser in order to operate.

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


More information about the wp-trac mailing list