ZF-2473: Zend_View_Helper_FormLabel
Description
Hello, I've tried to create label like this:
Label code:
<?= $this->formLabel('selectone', '
' ) ?>
And it escapes the output, so it passes img tag as an escaped string instead of tag.
Hello, I've tried to create label like this:
Label code:
<?= $this->formLabel('selectone', '
' ) ?>
And it escapes the output, so it passes img tag as an escaped string instead of tag.
Comments
Posted by Amr Mostafa (alienbrain) on 2008-02-07T09:44:24.000+0000
I need this as well, I've checked www.w3.org/TR/html4/interact/forms.html#edef-LABEL" rel="nofollow">Label in W3C HTML Spec and it says that most inline element can be included inside , so I think it makes sense.
I will attach a patch. Thanks.
Posted by Amr Mostafa (alienbrain) on 2008-02-07T09:47:22.000+0000
Adds support for boolean 'escape' parameter to formLabel() that would skip escaping.
Posted by Matthew Weier O'Phinney (matthew) on 2008-02-13T08:40:12.000+0000
You can now pass the attrib 'escape'; when set to a value evaluating to false, the label will not be escaped:
Posted by Martin Hujer (mhujer) on 2008-02-13T08:52:10.000+0000
Nice :)