ZF-3632: Zend_View_Helper_Fieldset: add ability to disable escaping legendString
Description
I'm not sure if this is too much of a niche need, but I certainly would have use for the ability to disable auto-escaping for the fieldset's legendString, e.g. "Optional: Description goes here".
Comments
Posted by Goran Juric (gog) on 2008-09-08T12:18:42.000+0000
You should be able to write your own Label decorator and assign it to your form elements.
Although, I don't really see the need for this in your case, you can just edit your CSS file and add:
label { font-weight: bold; }
and you will achieve the same effect without hacking your html.
Posted by Matthew Weier O'Phinney (matthew) on 2008-09-08T12:55:20.000+0000
Goran -- the reporter indicates that the issue is with the fieldset, which does allow adding inline tags. This is a valid request -- we have escape flags in many other view helpers at this point.
Posted by Tianon Gravi (admwiggin) on 2008-09-08T13:00:25.000+0000
Right, because Goran's solution would bold the entire label, and some people only want (for example) the text prefix "Optional:" within the label bolded.
Posted by Matthew Weier O'Phinney (matthew) on 2008-09-08T13:10:52.000+0000
Fixed in trunk and 1.6 release branch; will release in 1.6.1.