added a note about the default escaping strategy

This commit is contained in:
Fabien Potencier
2016-11-09 17:20:50 -08:00
parent d6e60740d9
commit 56556d72f8
2 changed files with 2 additions and 6 deletions
-2
View File
@@ -6,8 +6,6 @@ template to be escaped or not by using the ``autoescape`` tag:
.. code-block:: jinja
{# The following syntax works as of Twig 1.8 -- see the note below for previous versions #}
{% autoescape %}
Everything will be automatically escaped in this block
using the HTML strategy
+2 -4
View File
@@ -424,10 +424,8 @@ everything by default.
Twig supports both, automatic escaping is enabled by default.
.. note::
Automatic escaping is only supported if the *escaper* extension has been
enabled (which is the default).
The automatic escaping strategy can be configured via the
:ref:`autoescape<environment_options>` option and defaults to ``html``.
Working with Manual Escaping
~~~~~~~~~~~~~~~~~~~~~~~~~~~~