Zend Framework

formError: disabling automatic escaping

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.5.0RC1
  • Fix Version/s: 1.5.0
  • Component/s: Zend_Form
  • Labels:
    None
  • Fix Version Priority:
    Should Have

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.

Activity

Hide
Matthew Weier O'Phinney added a comment -

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

Show
Matthew Weier O'Phinney added a comment - Scheduling for 1.5.0 GA release. FormElement already searches for escape flag; will make FormErrors helper aware of the flag.
Hide
Matthew Weier O'Phinney added a comment -

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:

echo $this->formErrors($errors, array('escape' => false));

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

Show
Matthew Weier O'Phinney added a comment - 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:
echo $this->formErrors($errors, array('escape' => false));
The FormErrors decorator will pass its escape option on to the formErrors view helper.

People

Vote (0)
Watch (0)

Dates

  • Due:
    Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
15m
Original Estimate - 15 minutes
Remaining:
15m
Remaining Estimate - 15 minutes
Logged:
Not Specified
Time Spent - Not Specified