Files
Twig/tests/Fixtures/autoescape/name.test
2019-06-30 14:56:12 +02:00

23 lines
420 B
Plaintext

--TEST--
"name" autoescape strategy
--TEMPLATE--
{{ br -}}
{{ include('index.js.twig') -}}
{{ include('index.html.twig') -}}
{{ include('index.txt.twig') -}}
--TEMPLATE(index.js.twig)--
{{ br -}}
--TEMPLATE(index.html.twig)--
{{ br -}}
--TEMPLATE(index.txt.twig)--
{{ br -}}
--DATA--
return ['br' => '<br />']
--CONFIG--
return ['autoescape' => 'name']
--EXPECT--
&lt;br /&gt;
\u003Cbr\u0020\/\u003E
&lt;br /&gt;
<br />