Luke Plant  committed 9dae23b

[1.2.X] Fixed #13350 - Documentation on autoescape should mention endautoescape

Thanks to for report and to dwillis for patch.

Backport of [13694] from trunk

  • Participants
  • Parent commits 7994e44
  • Branches releases/1.2.X

Comments (0)

Files changed (1)

File docs/ref/templates/builtins.txt

 Control the current auto-escaping behavior. This tag takes either ``on`` or
 ``off`` as an argument and that determines whether auto-escaping is in effect
-inside the block.
+inside the block. The block is closed with an ``endautoescape`` ending tag.
 When auto-escaping is in effect, all variable content has HTML escaping applied
 to it before placing the result into the output (but after any filters have
 escaping, either by the code that populated the variable, or because it has had
 the ``safe`` or ``escape`` filters applied.
+Sample usage::
+    {% autoescape on %}
+        {{ body }}
+    {% endautoescape %}
 .. templatetag:: block