Issues

ZF-3632: Zend_View_Helper_Fieldset: add ability to disable escaping legendString

Issue Type: Improvement Created: 2008-07-11T19:18:49.000+0000 Last Updated: 2008-09-08T13:10:52.000+0000 Status: Resolved Fix version(s): - 1.6.1 (15/Sep/08)

Reporter: Ryan Mannion (rmannion) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_View

Related issues: Attachments:

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.

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts