Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 25, 20214 yr 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, 20214 yr by Bazilisk
April 25, 20214 yr Solution {text|raw} won't escape the text. But please be very careful 😉 NEVER do this with usergenerated content