public static String htmlEncodeTag(String source) { if (source != null) { String result = replaceAllNoRegex(source, new String[] { "<", ">" }, new String[] { "<", ">" }); return result; } else return null; }