diff options
| author | Tim Graham <timograham@gmail.com> | 2017-03-04 09:04:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-04 09:04:16 -0500 |
| commit | 6ae1b04fb584db0fdb22b8e287784c4ed3ac62ac (patch) | |
| tree | 6bb12240f72946ce5661a95a1597c732fc330db7 /django/utils/html.py | |
| parent | 711123e1cdaf3b08c876c045d8d38decdc7a63d3 (diff) | |
Fixed #27900 -- Made escapejs escape backticks for use in ES6 template literals.
Diffstat (limited to 'django/utils/html.py')
| -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 18c650fb06..25843ce576 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -58,6 +58,7 @@ _js_escapes = { ord('='): '\\u003D', ord('-'): '\\u002D', ord(';'): '\\u003B', + ord('`'): '\\u0060', ord('\u2028'): '\\u2028', ord('\u2029'): '\\u2029' } |
