I need to insert html code like this in my zend form:
If you're creating a form element, I think you have to override the isValid() method, as in the code below, or your "value" will disappear upon a validation error:
class RenomoZF_Form_Element_Note extends Zend_Form_Element_Xhtml
{
/**
* Default form view helper to use for rendering
* @var string
*/
public $helper = 'formNote';
public function isValid($value, $context = null) {
return TRUE;
}
}
I usually use description with array(escape => false) option to render HTML in form.