Jump to content


How to send text to template with html tags

Go to solution Solved by Daniel F,

Recommended Posts

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: &lt;p&gt;

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 by Bazilisk
Link to comment
Share on other sites


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy