How can I display a string that contains HTML tags in 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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…