/** * replaces all special html Strings such as(&....; or &#dddd;) with their original characters. * * @param input input which may contain html specific strings. * @return cleaned input. */ public static String convertAmpersandStrings(String input) { return Regexps.replaceMap(AMPERSAND_PATTERN.matcher(input), HTML_STRING_TO_CHAR_MAP_FULL); }