How can I display a string that contains HTML tags in a twig template?
My PHP variable contains this HTML and text:
$word = '<b> a word </b>';
When I do this in my twig template:
{{ word }}
I get this:
<b> a word <b>
I want this instead:
<b> a word </b>
Is it possible to get this easily?
Use raw keyword, https://twig.symfony.com/doc/3.x/api.html#escaper-extension
{{ word | raw }}