-- cyrilkuch <[EMAIL PROTECTED]> wrote
(on Wednesday, 13 August 2008, 10:19 AM -0700):
> I'm new to ZF and this was my first posting on this forum.
>
> I haven't got any reply to my question and I just wonder if anybody can help
> me out with this issue? Even the answer like: "There is no known possible
> solution to it" would help :)
You'll need to set an attribute on your element:
$element->escape = false;
This will disable escaping of the individual checkbox labels.
You can also pass this as a configuration option when creating the
element:
'escape' => false,
> cyrilkuch wrote:
> >
> > Hi,
> >
> > Is there any way to disable escaping for multicheckbox options ?
> >
> > I'm creating a multi checkbox element with linked options like this:
> >
> > $element = new Zend_Form_Element_MultiCheckbox('foo', array(
> > 'multiOptions' => array(
> > 'foo' => '<a href="#">Foo Option</a>',
> > 'bar' => '<a href="#">Bar Option</a>',
> > 'baz' => '<a href="#">Baz Option</a>',
> > 'bat' => '<a href="#">Bat Option</a>',
> > );
> > ));
> >
> > When the multi checkbox is displayed links are escaped.
> > I tried to remove escaping for multi checkbox like this:
> >
> > $label = $element->getDecorator('label');
> > $label->setOption('escape', false);
> >
> > but this applies only to multi checkbox's label but not to it's options.
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend Framework | http://framework.zend.com/