Strip XML- Or HTML-like Tags From A String
Join the DZone community and get the full member experience.
Join For Free// A convenience method that strips XML/HTML tags from string
private String stripTags(String HTMLString) {
String noHTMLString = HTMLString.replaceAll("\\<.*?>","");
return noHTMLString;
}
XML
Strings
Opinions expressed by DZone contributors are their own.
Comments