/** Unescape '<', '>', '&', '"' and ''' */ public static String unescapeXMLAttributeValue (String text) { if (text == null) return null; // TODO Replace with StringBuilder return unescapeXMLText (text) .replaceAll (EntityResolver.QUOT_ESCAPE, "\"") .replaceAll (EntityResolver.APOS_ESCAPE, "'") ; }