From d97eaec81e903a9d7f0ba9884aad08491ee6fb22 Mon Sep 17 00:00:00 2001 From: wazz42 Date: Wed, 10 Aug 2016 09:54:11 +0200 Subject: [PATCH] Deprecated message with "true" parameter With the "true" parameter you will get this message: Using "true" as the default strategy is deprecated since version 1.21. Use "html" instead. I replaced it with the default value. --- reference/configuration/twig.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reference/configuration/twig.rst b/reference/configuration/twig.rst index 15844c0349f..c9e57c87bfb 100644 --- a/reference/configuration/twig.rst +++ b/reference/configuration/twig.rst @@ -62,7 +62,7 @@ TwigBundle Configuration ("twig") 3.14, ), 'auto_reload' => '%kernel.debug%', - 'autoescape' => true, + 'autoescape' => 'filename', 'base_template_class' => 'Twig_Template', 'cache' => '%kernel.cache_dir%/twig', 'charset' => '%kernel.charset%', @@ -129,8 +129,7 @@ autoescape **type**: ``boolean`` or ``string`` **default**: ``'filename'`` -If set to ``true``, all template contents are escaped for HTML. If set to -``false``, automatic escaping is disabled (you can still escape each content +If set to ``false``, automatic escaping is disabled (you can still escape each content individually in the templates). .. caution::