Java Utililty Methods HTML Clean

List of utility methods to do HTML Clean

Description

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

Method

StringcleanHtml(String html)
clean Html
return html.replaceAll("<style[^>]*?>[\\s\\S]*?</style>|<script[^>]*?>[\\s\\S]*?</script>|<.+?>", "");
StringcleanHTML(String input)
clean HTML
if (input == null)
    return input;
return input.replaceAll("\\<.*?\\>", "");
StringcleanHTML(String s)
Clean HTML tags from a String
Only replaces < and > for now
TODO improve
return s.replaceAll("<", "[").replaceAll(">", "]");
StringcleanHtml(String s)
clean Html
s = cleanString(s);
return s.replaceAll("^\\s+", "");
StringcleanHtml(String str)
clean Html
str = str.replaceAll("\"", "");
str = str.replaceAll("<param ", "");
str = str.substring(0, str.length() - 1);
return str;
StringcleanHtmlTag(String content)
clean Html Tag
return content.replaceAll(RE_HTML_MARK, "");
StringcleanHtmlTag(String htmlText)
clean Html Tag
String reg = "</?[a-z][a-z0-9]*[^<>]*>?";
return htmlText.replaceAll(reg, "");
StringcleanHTMLText(String sText)
clean HTML Text
StringBuffer sb = new StringBuffer(sText.length());
int len = sText.length();
char c;
for (int i = 0; i < len; i++) {
    c = sText.charAt(i);
    if (c == '"')
        sb.append("&quot;");
    else if (c == '&')
...