3

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.

Stephen Booher
  • 6,522
  • 4
  • 34
  • 50
Andresh Podzimovsky
  • 1,511
  • 4
  • 13
  • 17

2 Answers2

10

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}

Brad
  • 159,648
  • 54
  • 349
  • 530
Sunny12
  • 101
  • 1
  • 4
2

The solution was escape:false

{html_checkboxes name='select_menu' values=$user_data[1] output=$user_data[2] escape:false}
Andresh Podzimovsky
  • 1,511
  • 4
  • 13
  • 17