List of utility methods to do HTML Filter
String | filterHtmlTag(String input) Remove all html tags in inputed string. if (input == null || input.trim().equals("")) { return ""; String str = input.replaceAll("\\&[a-zA-Z]{1,10};", "").replaceAll("<[^>]*>", ""); str = str.replaceAll("[(/>)<]", ""); return str; |