@@ -62,7 +62,7 @@ TwigBundle Configuration ("twig")
62
62
63
63
<twig : config
64
64
auto-reload =" %kernel.debug%"
65
- autoescape =" filename "
65
+ autoescape =" name "
66
66
base-template-class =" Twig_Template"
67
67
cache =" %kernel.cache_dir%/twig"
68
68
charset =" %kernel.charset%"
@@ -93,7 +93,7 @@ TwigBundle Configuration ("twig")
93
93
'pi' => 3.14,
94
94
),
95
95
'auto_reload' => '%kernel.debug%',
96
- 'autoescape' => 'filename ',
96
+ 'autoescape' => 'name ',
97
97
'base_template_class' => 'Twig_Template',
98
98
'cache' => '%kernel.cache_dir%/twig',
99
99
'charset' => '%kernel.charset%',
@@ -127,7 +127,7 @@ compiled again automatically.
127
127
autoescape
128
128
~~~~~~~~~~
129
129
130
- **type **: ``boolean `` or ``string `` **default **: ``'filename ' ``
130
+ **type **: ``boolean `` or ``string `` **default **: ``'name ' ``
131
131
132
132
If set to ``false ``, automatic escaping is disabled (you can still escape each content
133
133
individually in the templates).
@@ -141,9 +141,9 @@ individually in the templates).
141
141
142
142
If set to a string, the template contents are escaped using the strategy with
143
143
that name. Allowed values are ``html ``, ``js ``, ``css ``, ``url ``, ``html_attr ``
144
- and ``filename ``. The default value is ``filename ``. This strategy escapes
145
- contents according to the filename extension (e.g. it uses ``html `` for
146
- `` *.html.twig `` templates and ``js `` for ``*.js.html `` templates).
144
+ and ``name ``. The default value is ``name ``. This strategy escapes contents
145
+ according to the filename extension (e.g. it uses ``html `` for `` *.html.twig ``
146
+ templates and ``js `` for ``*.js.html `` templates).
147
147
148
148
.. tip ::
149
149
0 commit comments