Kaydet (Commit) e5d30c70 authored tarafından Luke Plant's avatar Luke Plant

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
üst 2422fbfc
......@@ -23,7 +23,7 @@ autoescape
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
......@@ -34,6 +34,12 @@ The only exceptions are variables that are already marked as "safe" from
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
block
......
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