mirror of
https://github.com/django/django.git
synced 2025-04-23 00:34:37 +00:00
[2.0.x] Fixed #29055 -- Doc'd that escapejs doesn't make template literals safe.
Backport of f229049d6cd186025f4033dc47608b0c9731e882 from master
This commit is contained in:
parent
42622b8934
commit
ed206a9b99
@ -1640,8 +1640,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…
x
Reference in New Issue
Block a user