- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 14 Sep 2009 15:49:53 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util In directory hutz:/tmp/cvs-serv30756/src/org/w3c/unicorn/util Added Files: EscapeHTMLEntities.java Log Message: new class EscapeHTMLEntities to use instead of EscapeXMLEntities to avoid displaying ' on ie (' is an xml but not an html entity) --- NEW FILE: EscapeHTMLEntities.java --- package org.w3c.unicorn.util; import org.apache.commons.lang.StringEscapeUtils; import org.apache.velocity.app.event.ReferenceInsertionEventHandler; public class EscapeHTMLEntities implements ReferenceInsertionEventHandler { /** * Escape the XML entities for all inserted references. */ public Object referenceInsert(final String sUnused, final Object oValue) { final String sValue = oValue.toString(); return StringEscapeUtils.escapeHtml(sValue); } }
Received on Monday, 14 September 2009 15:50:01 UTC