show a smarty variable with html content -


i have smarty variable html content in like: $html="<strong>content</strong><br/>etc etc" . try show html-formatted. when showing {$html} plain text appears without formatting. try like: {$html|unescape} tags shown not applied. have suggestions?

you should try this:

{$html|unescape:'html'} 

also check manual:

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


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -