[ http://jira.codehaus.org/browse/DISPL-387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100379 ]
Dmitri Schoeman commented on DISPL-387: --------------------------------------- I think the core issue is that the EscapeXmlColumnDecorator is calling StringEscapeUtils.escapeXml() Apache is doing what they are asked: in XML it is appropriate to escape a single quote. I think the behavior should probably be to call StringEscapeUtils.escapeHtml instead, which understands that a ' should not be escaped in HTML. My workaround is to create my own Decorator as Paul has done, but rather than try to undo the wrong parts that escapeXML causes, I just directly call escapeHTML. I think this would also be the appropriate fix for the EscapeXmlColumnDecorator class itself. if (columnValue == null || (!media.equals(MediaTypeEnum.HTML) && !media.equals(MediaTypeEnum.XML))) { return columnValue; } return StringEscapeUtils.escapeHtml(columnValue.toString()); > problem for single quote escaping for single quote character in displaytag > column tags using escapeXML="true" > -------------------------------------------------------------------------------------------------------------- > > Key: DISPL-387 > URL: http://jira.codehaus.org/browse/DISPL-387 > Project: DisplayTag > Issue Type: Bug > Reporter: ruth shacter > > It appears that displaytag escapes (when escapeXml="true") a single quote > with ' > c:out and bean:write tags escape it with ' > The problem is that while Firefox and Safari understand ', Internet > Explorer does not. All three browsers understand '. > This means that all single quotes in displaytag tables will appear as ugly > "'". > This might be related to issue: maven-83: xdocs entity encoding problem for > single quote > If there is a known workaround, could you let me know? thanks. -- 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 DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel