How to turn off html escape in Smarty

Andresh Podzimovsky picture Andresh Podzimovsky · Sep 10, 2012 · Viewed 7.9k times · Source

I am using html_checkboxes for generating select menu. The problem is that in the checkbox name I have some html code and Smarty escapes it.

I have:

{html_checkboxes name='select_menu' values=$user_data[1] output=$user_data[2]}

I get:

Status: <span style="color: blue">Normal</span>

I need that status would be just blue.

Answer

Sunny12 picture Sunny12 · Mar 19, 2013

There is no correct answer above, even though the last answer is quite close..

check this link out http://www.smarty.net/docs/en/variable.escape.html.tpl

the correct answer should be {$var nofilter}