[wp-trac] [WordPress Trac] #62025: Unable to use wp_kses* with JavaScript templating

WordPress Trac noreply at wordpress.org
Tue Sep 10 09:57:56 UTC 2024


#62025: Unable to use wp_kses* with JavaScript templating
--------------------------+------------------------
 Reporter:  jernstjernst  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Formatting    |     Version:  1.0
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by swissspidy):

 * status:  new => closed
 * focuses:  coding-standards =>
 * resolution:   => duplicate
 * version:  trunk => 1.0
 * milestone:  Awaiting Review =>


Comment:

 This is technically working as intended, as KSES is supposed to strip
 invalid/unsupported HTML markup. It is not meant to be used on things like
 Underscore templates.

 See #30920 where this was previously discussed.

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


More information about the wp-trac mailing list