Zend_Form_Element_Radio option label should not be escaped

Posted by sims on Stack Overflow See other posts from Stack Overflow or by sims
Published on 2010-03-26T12:52:06Z Indexed on 2010/03/26 12:53 UTC
Read the original article Hit count: 448

Filed under:
|
|
|

I want to include some HTML in the labels of the radio buttons so that the user can click a link within that label. For example

<label for="value-12">
    <input name="value" id="value-12" value="12" checked="checked" type="radio">
    Doo Bee Dooo Bee Doooo
    <a href="somelink">preview this song</a>
</label>

The html keeps getting escaped. I want to stop that. I read about:

array('escape' => false)

Somewhere, but I don't know how to use that with

$value->setMultiOptions($songs);

or

$value->addMultiOptions($songs)

Any ideas? Thanks all!

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about radiobutton