[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:31:49 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):

 It sounds like you’re trying to verify how the force_balance_tags()
 function handles unbalanced tags in HTML output, especially when working
 with shortcodes or other dynamic content generators like Ninja Forms. The
 issue, where unclosed tags (like <span>, <i>, <a>, etc.) sometimes get
 prematurely closed before the end of a <script> tag, could indeed be
 challenging to troubleshoot without a direct test environment.

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


More information about the wp-trac mailing list