[wp-trac] [WordPress Trac] #44571: force_balance_tags breaks JavaScript

WordPress Trac noreply at wordpress.org
Sat Jul 14 18:42:18 UTC 2018


#44571: force_balance_tags breaks JavaScript
-----------------------------+------------------------------
 Reporter:  yellowafterlife  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Shortcodes       |     Version:  4.9.7
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by soulseekah):

 This is a very common issue among formatting functions in WordPress,
 wherein "stray" brackets break tag detection. This happens in scripts,
 styles and even regular HTML attributes with angle brackets in them. There
 are a bunch of tickets open regarding this.

 The issue here is that {{{<=1);</script>}}} is detected as a tag.

 Also there are no unit tests. Let's start writing some.

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


More information about the wp-trac mailing list