Skip to content Skip to sidebar Skip to footer

Smarty Displays Raw Html

I am passing my HTML string to the $content variable and trying to display it, in the result I see raw HTML tags instead of the string markup. Controller: $content = '

Solution 1:

Please try:

{$content|unescape:'html'}

More details on: http://www.smarty.net/docs/en/language.modifier.unescape.tpl

Post a Comment for "Smarty Displays Raw Html"