Skip to content
Advertisement

How to render Html with smarty

I’m trying to render my raw HTML with smarty.

JavaScript

The original text contains spaces and text returns, but when displayed, HTML is shown as plain text.

Also, I tried to add {$brand.description|strip_tags:'UTF-8'} as a filter for my string. But it’s only deleting my HTML.

How can my smarty template render this string as pure HTML?

Advertisement

Answer

Answer is…

JavaScript

Also, you can disable this indicator by change default smarty behavior:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement