Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#27900 closed Cleanup/optimization (fixed)

Make escapejs escape backticks to support usage in ES6 template literals

Reported by: Anthony King Owned by: nobody
Component: Utilities Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Using the escapejs filter inside a template literal currently results in a syntax error if the string contains a `.

Change History (4)

comment:1 by Tim Graham, 8 years ago

Has patch: set

comment:2 by Claude Paroz, 8 years ago

Triage Stage: AcceptedReady for checkin

comment:3 by GitHub <noreply@…>, 8 years ago

Resolution: fixed
Status: newclosed

In 6ae1b04f:

Fixed #27900 -- Made escapejs escape backticks for use in ES6 template literals.

comment:4 by Tim Graham <timograham@…>, 8 years ago

In 6392bf26:

[1.11.x] Fixed #27900 -- Made escapejs escape backticks for use in ES6 template literals.

Backport of 6ae1b04fb584db0fdb22b8e287784c4ed3ac62ac from master

Note: See TracTickets for help on using tickets.
Back to Top