The list of methods to do HTML Clean are organized into topic(s).
String
cleanHtml(String html) clean Html
return html.replaceAll("<style[^>]*?>[\\s\\S]*?</style>|<script[^>]*?>[\\s\\S]*?</script>|<.+?>", "");
String
cleanHTML(String input) clean HTML
if (input == null)
return input;
return input.replaceAll("\\<.*?\\>", "");
String
cleanHTML(String s) Clean HTML tags from a String
Only replaces < and > for now
TODO improve
return s.replaceAll("<", "[").replaceAll(">", "]");
String
cleanHtml(String str) clean Html
str = str.replaceAll("\"", "");
str = str.replaceAll("<param ", "");
str = str.substring(0, str.length() - 1);
return str;
String
cleanHTMLText(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(""");
else if (c == '&')
...