Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #13350 - Documentation on autoescape should mention endautoescape

Thanks to mountainpaul@gmail.com for report and to dwillis patch.



git-svn-id: http://code.djangoproject.com/svn/django/trunk@13694 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e5d30c700153fdd674c8a42fb601cd1e17c91911 1 parent 2422fbf
Luke Plant authored September 07, 2010

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  docs/ref/templates/builtins.txt
8  docs/ref/templates/builtins.txt
@@ -23,7 +23,7 @@ autoescape
23 23
 
24 24
 Control the current auto-escaping behavior. This tag takes either ``on`` or
25 25
 ``off`` as an argument and that determines whether auto-escaping is in effect
26  
-inside the block.
  26
+inside the block. The block is closed with an ``endautoescape`` ending tag.
27 27
 
28 28
 When auto-escaping is in effect, all variable content has HTML escaping applied
29 29
 to it before placing the result into the output (but after any filters have
@@ -34,6 +34,12 @@ The only exceptions are variables that are already marked as "safe" from
34 34
 escaping, either by the code that populated the variable, or because it has had
35 35
 the ``safe`` or ``escape`` filters applied.
36 36
 
  37
+Sample usage::
  38
+
  39
+    {% autoescape on %}
  40
+        {{ body }}
  41
+    {% endautoescape %}
  42
+
37 43
 .. templatetag:: block
38 44
 
39 45
 block

0 notes on commit e5d30c7

Please sign in to comment.
Something went wrong with that request. Please try again.