mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
[1.11.x] Fixed #27900 -- Made escapejs escape backticks for use in ES6 template literals.
Backport of 6ae1b04fb5 from master
This commit is contained in:
@@ -142,6 +142,7 @@ class TestUtilsHtml(SimpleTestCase):
|
||||
'paragraph separator:\u2029and line separator:\u2028',
|
||||
'paragraph separator:\\u2029and line separator:\\u2028'
|
||||
),
|
||||
('`', '\\u0060'),
|
||||
)
|
||||
for value, output in items:
|
||||
self.check_output(f, value, output)
|
||||
|
||||
Reference in New Issue
Block a user