Teemu Valimaki wrote:
> 
> 2. Zend_Form creates labels with stripped output. It would be really good
> to 
> have option to turn off stripping per element. I'd want to have a label,
> that 
> has a link in it.
> 

A work around for this problem is to pull out the view object for the
element, change how it escapes output, and then pass the view object back
in:

<inside an action method of your controller>
$element = $form->getElement('elementName');
$elementView = $element->getView();
$elementView->setEscape(array($this,'noEscape'));
$element->setView($elementView);

<tacked on to your controller, but this could come from a custom object too>
public function noEscape($str) {
     return $str;
}

This worked for me. Hope it helps you.

-- 
View this message in context: 
http://www.nabble.com/ZF-1.5PR-comments-tp15155432s16154p15766563.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to