[ http://jira.codehaus.org/browse/DISPL-487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_108038 ]
daniel weijers commented on DISPL-487: -------------------------------------- looking at the code, only the escapeXml method is used, for both XML and HTML if a seperated call to the escapeHtml can be made for HTML, a lot more (in effect all html 4.0) will be escaped, according to the javadoc of the StringEscapeUtils class. Hopes this helps <snippet could be added to the EscapeXmlColumnDecorator.java class> if (media.equals(MediaTypeEnum.XML)) { return StringEscapeUtils.escapeXml(columnValue.toString()); } if (media.equals(MediaTypeEnum.HTML)) { return StringEscapeUtils.escapeHtml(columnValue.toString()); } > escapeXml attribute doesn't escape spaces to > --------------------------------------------------- > > Key: DISPL-487 > URL: http://jira.codehaus.org/browse/DISPL-487 > Project: DisplayTag > Issue Type: Bug > Affects Versions: 1.1 > Reporter: daniel weijers > > Within our project data is read from a database and displayed via the > displaytag table. > > The escapeXml="true" is set for the column tag. > We expected to have data " Name" to be escaped into " Name". > Is it possible to have the escapeXml working for space? This doesn't happen. > Note: > It looks like only the & " en ' are transformed to there respective & > " en ' No other characters are escaped. > The possibility of having a global (configuration) setting for the escapXml > (like the defaultHtmlEscape of Spring) would be great! -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel