Java Utililty Methods HTML Filter

List of utility methods to do HTML Filter

Description

The list of methods to do HTML Filter are organized into topic(s).

Method

StringfilterHtmlTag(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;