This can easily be done using decorators. For instance using the Description decorator. It is important to note though that you will need to turn off escaping for the output of the decorator:

$element->setDecorators(array(
    array('ViewHelper'),
    array('Description', array('escape' => false)),
    array('Errors'),
    array('HtmlTag', array('tag' => 'dd')),
    array('Label', array('tag' => 'dt')),
));

Now, you can use the following to add extra HTML to the element:

$element->setDescription(
    '<strong>This contains HTML that will actually be parsed by the browser, not escaped</strong>'
);

Posted in: Zend

Related FAQ's

Marius Ion ANGEL HOT SOFT LLC (800) 316-7677