Files
Twig/tests/Fixtures/functions/include/assignment_autoescaping.test
2026-06-04 21:32:12 +02:00

11 lines
241 B
Plaintext

--TEST--
"include" function returns Markup so an assigned result is not re-escaped
--TEMPLATE--
{% set assigned = include("foo.twig") %}[{{ assigned }}]
--TEMPLATE(foo.twig)--
{{- "a & b"|escape -}}
--DATA--
return []
--EXPECT--
[a & b]