Unverified Kaydet (Commit) f229049d authored tarafından Tim Graham's avatar Tim Graham Kaydeden (comit) GitHub

Fixed #29055 -- Doc'd that escapejs doesn't make template literals safe.

üst 3aa9ab39
......@@ -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::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment