[wp-trac] [WordPress Trac] #42181: esc_js must escape U+2028 and U+2029

WordPress Trac noreply at wordpress.org
Wed Oct 11 12:56:09 UTC 2017


#42181: esc_js must escape U+2028 and U+2029
--------------------------+-----------------------------
 Reporter:  johanee       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  4.8
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 JS considers U+2028 (line separator) and U+2029 (paragraph separator) as
 line terminators, so they must be escaped to not break inline JS.

 See:
 https://www.ecma-international.org/ecma-262/5.1/#sec-7.3

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42181>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list