I have an action and a Twig-template.
Via render() it is possible to place a text for a Twig-tag {{ tagname }}.
But this text is escaped. Now I would like to place (not-escaped) HTML-code.
How is that done in Symfony2?
Escaping is handled by Twig.
{{ var }} leads to escaped output.
{{ var|raw }} leads to raw/not-escaped output.
raw is a filter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With