Opened 9 years ago
Last modified 9 years ago
#42182 new defect (bug)
esc_js must escape U+2028 and U+2029
| Reported by: | johanee | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Formatting | Version: | 4.8 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
#42181 was marked as a duplicate.