[wp-trac] [WordPress Trac] #40958: force_balance_tags breaks Ninjaforms and probably other plugins that output html within js.

WordPress Trac noreply at wordpress.org
Fri Oct 25 20:32:11 UTC 2024


#40958: force_balance_tags breaks Ninjaforms and probably other plugins that output
html within js.
--------------------------+---------------------------------
 Reporter:  programmin    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Shortcodes    |     Version:  4.7.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  ui, administration
--------------------------+---------------------------------

Comment (by qaisargujjar):

 Simple Unbalanced Tags: This could include a single unclosed tag (<i>,
 <a>, or <span>) before a </script>. This might give you a clear example of
 how force_balance_tags() currently closes these tags versus how the HTML
 API would handle it.

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


More information about the wp-trac mailing list