[ http://jira.magnolia.info/browse/MAGNOLIA-1530?page=all ]
Sean McMains updated MAGNOLIA-1530: ----------------------------------- Attachment: escapexml.diff As it turns out, StringEscapeUtils.escapeXml() outputs the ' entity. IE doesn't support that entity, which results in anything with apostrophes being displayed incorrectly. I'm attaching an updated patch that uses the numeric form of the ' entity and displays correctly on all browsers. > Add escapeXml attribute to cms:out tag > -------------------------------------- > > Key: MAGNOLIA-1530 > URL: http://jira.magnolia.info/browse/MAGNOLIA-1530 > Project: Magnolia > Issue Type: Improvement > Components: taglibs > Affects Versions: 3.0.2 > Environment: All > Reporter: Sean McMains > Assigned To: Fabrizio Giustina > Attachments: escapexml.diff, escapeXmlPatch.txt > > > In order to generate validating XHTML and XML, it would be very useful to > have an escapeXml attribute for the cms:out tag. Currently one has to rely on > JSTL to get proper escaping, like this: > <cms:out nodeDataName="text" var="text"/><c:out value="${text}"/> > (Note the JSTL c:out tag escapes by default, though you can turn it off with > its escapeXml attribute.) > It would be nicer to be able to do this: > <cms:out nodeDataName="text" escapeXml="true" /> > Since magnolia templates (FCK Editor paragraphs especially) rely on the > existing behavior, this attribute probably needs to default to false, rather > than true as the JSTL template does. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------