I would like to include subscript text in a Zend_Form_Element's label, and it doesn't seem to be working:
$zend_form_element->setLabel('Label <sub>x</sub>');
Is there anything I can do to get it to output properly without having to manually write the form on the view page? Thanks for the help,
Dave
I would say that best way is to get actual decorator from element and then set escape option, not to add new decorator:
$zend_form_element->getDecorator('Label')->setOption('escape',false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With