The following comment has been added to this issue: Author: Al Maw Created: Tue, 9 Nov 2004 1:21 PM Body: This should be made simple/easy for the common cases:
<display:column property="foo"/> For columns that use a property, they should "notice" when that property is a String, and automagically XHTML escape things, unless you set escapeXml="false". I guess this needs to be a configuration option in displaytag.properties so escapeXml="false" is the default, otherwise this would break backwards-compatibility, <display:column> <c:out [...]/> </display:column> For columns that don't use a property, the contents should not be escaped, unless the escapeXml="true" property is set (which would be a nice convenience function. --------------------------------------------------------------------- View this comment: http://jira.codehaus.org/browse/DISPL-80?page=comments#action_26244 --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/DISPL-80 Here is an overview of the issue: --------------------------------------------------------------------- Key: DISPL-80 Summary: option to automatically escape xml Type: Improvement Status: Unassigned Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: DisplayTag Components: Decorators Fix Fors: 1.1 Versions: 1.0 RC1 Assignee: Reporter: fabrizio giustina Created: Fri, 22 Oct 2004 1:11 PM Updated: Tue, 9 Nov 2004 1:21 PM Description: ==== imported from sf tracker id 929098 submitted by Adam Murray - admm http://sourceforge.net/support/tracker.php?aid=929098 ==== I'm displaying some strings that contain xml. These are not diplayed by the web browser because it tries to interpret the tag as html. To correct this I have to use a decorator. It would be nice if there were an option one could set for the table (or individual columns) to automatically escape any xml in the strings being displayed. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel