mirror of
https://github.com/django/django.git
synced 2024-11-28 10:48:32 +01:00
Fixed #29055 -- Doc'd that escapejs doesn't make template literals safe.
This commit is contained in:
parent
3aa9ab39cc
commit
f229049d6c
@ -1618,8 +1618,8 @@ For example, you can apply ``escape`` to fields when :ttag:`autoescape` is off::
|
||||
------------
|
||||
|
||||
Escapes characters for use in JavaScript strings. This does *not* make the
|
||||
string safe for use in HTML, but does protect you from syntax errors when using
|
||||
templates to generate JavaScript/JSON.
|
||||
string safe for use in HTML or JavaScript template literals, but does protect
|
||||
you from syntax errors when using templates to generate JavaScript/JSON.
|
||||
|
||||
For example::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user