summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authorAaron Elliot Ross <aaronelliotross@gmail.com>2015-11-08 10:06:07 +0100
committerTim Graham <timograham@gmail.com>2015-11-12 19:14:23 -0500
commit19a5f6da329d58653bcda85f84efd5d5eaf68f84 (patch)
tree52f6955cff728d3050710f70ba0a735e99704643 /docs/topics
parenta8f05f405f8b78e13d7c4c9ffd73d6182b6fc4d5 (diff)
Fixed #25469 -- Added autoescape option to DjangoTemplates backend.
Thanks Aymeric for the initial patch and Carl for review.
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/templates.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt
index f0abccc835..4834e9eb06 100644
--- a/docs/topics/templates.txt
+++ b/docs/topics/templates.txt
@@ -295,6 +295,19 @@ applications. This generic name was kept for backwards-compatibility.
``DjangoTemplates`` engines accept the following :setting:`OPTIONS
<TEMPLATES-OPTIONS>`:
+* ``'autoescape'``: a boolean that controls whether HTML autoescaping is
+ enabled.
+
+ It defaults to ``True``.
+
+ .. warning::
+
+ Only set it to ``False`` if you're rendering non-HTML templates!
+
+ .. versionadded:: 1.10
+
+ The ``autoescape`` option was added.
+
* ``'context_processors'``: a list of dotted Python paths to callables that
are used to populate the context when a template is rendered with a request.
These callables take a request object as their argument and return a