List of utility methods to do HTML Clean
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 s) clean Html s = cleanString(s); return s.replaceAll("^\\s+", ""); |
String | cleanHtml(String str) clean Html str = str.replaceAll("\"", ""); str = str.replaceAll("<param ", ""); str = str.substring(0, str.length() - 1); return str; |
String | cleanHtmlTag(String content) clean Html Tag return content.replaceAll(RE_HTML_MARK, ""); |
String | cleanHtmlTag(String htmlText) clean Html Tag String reg = "</?[a-z][a-z0-9]*[^<>]*>?"; return htmlText.replaceAll(reg, ""); |
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 == '&') ... |