Jump to content

How to send text to template with html tags


Bazilisk
 Share

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...