twig-raw-test.html.twig in Drupal 10
Same filename and directory in other branches
{# Template for testing |raw with autoescape. #} {% autoescape %} {{ script|raw }} {% endautoescape %}
1 theme call to twig-raw-test.html.twig
- TwigRawTest::testAutoescapeRaw in core/
modules/ system/ tests/ src/ Kernel/ Theme/ TwigRawTest.php - Tests the raw filter inside an autoescape tag.
File
core/modules/system/tests/modules/twig_theme_test/templates/twig-raw-test.html.twigView source
- {# Template for testing |raw with autoescape. #}
- {% autoescape %}
- {{ script|raw }}
- {% endautoescape %}