[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 23:03:13 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: Future Release
Component: General | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------------
Comment (by dmsnell):
@hbhalodia yes exactly! though I believe that the script is trying to
remove comments, tags, and SCRIPT or STYLE contents. I believe that
`.innerText` returns this, but I always get confused between that and
`.textContent`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64274#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list