List of utility methods to do HTML Tag Remove
String | removeTags(String str) remove Tags if (str == null) { throw new IllegalArgumentException("Str must not be null."); StringBuffer out = new StringBuffer(); char cs[] = str.toCharArray(); boolean tagFound = false; int i1 = 0; int l = 0; ... |
String | removeTags(final String source) remove Tags String modified = removeTags(source, "<(\"[^\"]*\"|'[^']*'|[^'\">])*>"); return replaceHTMLTags(modified); |
String | removeTags(final String source, final String regex) remove Tags String modified = new String(source); Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(modified); return matcher.replaceAll(""); |