Android Utililty Methods HTML Tag Remove

List of utility methods to do HTML Tag Remove

Description

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

Method

StringremoveTags(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;
...
StringremoveTags(final String source)
remove Tags
String modified = removeTags(source,
        "<(\"[^\"]*\"|'[^']*'|[^'\">])*>");
return replaceHTMLTags(modified);
StringremoveTags(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("");