Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / filters / force_escape.test
1 --TEST--
2 "escape" filter
3 --TEMPLATE--
4 {% set foo %}
5     foo<br />
6 {% endset %}
7
8 {{ foo|e('html') -}}
9 {{ foo|e('js') }}
10 {% autoescape true %}
11     {{ foo }}
12 {% endautoescape %}
13 --DATA--
14 return array()
15 --EXPECT--
16     foo&lt;br /&gt;
17 \u0020\u0020\u0020\u0020foo\u003Cbr\u0020\/\u003E\n
18         foo<br />