ZF-2699: formError: disabling automatic escaping

Issue Type: Improvement Created: 2008-02-21T06:46:23.000+0000 Last Updated: 2008-03-21T16:25:36.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Luiz Damim (luizvd) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments:


formError view helper automatically escapes the messages returned by validators.

We should enable/disable the automatic escaping, so the messages could contains HTML strings.


Posted by Matthew Weier O'Phinney (matthew) on 2008-03-05T10:01:32.000+0000

Scheduling for 1.5.0 GA release. FormElement already searches for escape flag; will make FormErrors helper aware of the flag.

Posted by Matthew Weier O'Phinney (matthew) on 2008-03-06T14:58:49.000+0000

Fix committed to trunk and release branch.

formErrors() helper now allows passing 'escape' as one option in $options array; when set to false, no escaping will be done on the messages:

<pre class="highlight">
echo $this->formErrors($errors, array('escape' => false));

The FormErrors decorator will pass its escape option on to the formErrors view helper.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.