diff options
| author | Tim Graham <timograham@gmail.com> | 2017-03-04 09:04:16 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-03-04 09:04:40 -0500 |
| commit | 6392bf26caa1ad4675152491bb2e19896e1d41c5 (patch) | |
| tree | b3954071f1800526a468ad565de04bcf97837d24 /django/utils | |
| parent | 1f20326db0ff2d5d741d0bc8dc4a8b13c97a3652 (diff) | |
[1.11.x] Fixed #27900 -- Made escapejs escape backticks for use in ES6 template literals.
Backport of 6ae1b04fb584db0fdb22b8e287784c4ed3ac62ac from master
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/html.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/html.py b/django/utils/html.py index ff9adffc75..9a968a5a41 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -61,6 +61,7 @@ _js_escapes = { ord('='): '\\u003D', ord('-'): '\\u002D', ord(';'): '\\u003B', + ord('`'): '\\u0060', ord('\u2028'): '\\u2028', ord('\u2029'): '\\u2029' } |
