Bazilisk Posted April 25, 2021 Posted April 25, 2021 (edited) I make application and have to use html tags <p></p> in variables. $text = "<p>some text</p><p>second paragraph text</p>"; But IPS auto convert it to symbols: <p> I try to fix it in template: {{$text = htmlspecialchars_decode($text, ENT_NOQUOTES);}} But htmlspecialchars_decode dont change variable. Is it possible to send formatted text as clear html to template? Edited April 25, 2021 by Bazilisk
Solution Daniel F Posted April 25, 2021 Solution Posted April 25, 2021 {text|raw} won't escape the text. But please be very careful 😉 NEVER do this with usergenerated content Bazilisk 1
Recommended Posts