From 542508d50a49166dd3f020ee2b7ecc0017a5717c Mon Sep 17 00:00:00 2001
From: Derek Willis <dwillis@gmail.com>
Date: Sun, 1 Aug 2010 22:38:09 -0400
Subject: [PATCH] Documentation on autoescape should mention endautoescape
---
docs/ref/templates/builtins.txt | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 0477653..21ce0b2 100644
a
|
b
|
autoescape
|
25 | 25 | |
26 | 26 | Control the current auto-escaping behavior. This tag takes either ``on`` or |
27 | 27 | ``off`` as an argument and that determines whether auto-escaping is in effect |
28 | | inside the block. |
| 28 | inside the block. The block is closed with an ``endautoescape`` ending tag. |
29 | 29 | |
30 | 30 | When auto-escaping is in effect, all variable content has HTML escaping applied |
31 | 31 | to it before placing the result into the output (but after any filters have |
… |
… |
The only exceptions are variables that are already marked as "safe" from
|
36 | 36 | escaping, either by the code that populated the variable, or because it has had |
37 | 37 | the ``safe`` or ``escape`` filters applied. |
38 | 38 | |
| 39 | Sample usage:: |
| 40 | |
| 41 | {% autoescape on %} |
| 42 | {{ body }} |
| 43 | {% endautoescape %} |
| 44 | |
39 | 45 | .. templatetag:: block |
40 | 46 | |
41 | 47 | block |