logo       

Unescaped options inside Zend_Form_Element_Select: msg#00179

php.zend.framework.mvc

Subject: Unescaped options inside Zend_Form_Element_Select

Hello list, just a quick question:

How can I get a Zend_Form_Element_Select populated without it's options being escaped?

I need to populate a <select> with indented options according to the hierarchy of each one.

$options = array(
  23  => '&nbsp; Option 1'
  24  => '&nbsp; &nbsp; Option 1.1'
  46  => '&nbsp; Option 2'
);
$myZendFormElementObject->addMultioptions( $options );

The result is I see the '&nbsp;'s

I've checked the API and docs but I can't find anything.

Thanks in advance.



Best Regards,
Ernesto
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise