ZF-2699: formError: disabling automatic escaping
Description
formError view helper automatically escapes the messages returned by validators.
We should enable/disable the automatic escaping, so the messages could contains HTML strings.
formError view helper automatically escapes the messages returned by validators.
We should enable/disable the automatic escaping, so the messages could contains HTML strings.
Comments
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:
The FormErrors decorator will pass its escape option on to the formErrors view helper.