public class HTMLUtils
extends java.lang.Object
This static class provides various utility methods for manipulating html and xml.
Modifier | Constructor and Description |
---|---|
protected |
HTMLUtils()
Don't allow instantiation, do allow overrides.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escapeHTML(java.lang.String s) |
static boolean |
isHTMLTaggedText(java.lang.String text)
Simple-minded test for determining if string is HTML/XML tagged .
|
static java.lang.String |
stripHTMLTags(java.lang.String taggedText)
Simple-minded tag stripper for HTML/XML .
|
static java.lang.String |
unescapeHTML(java.lang.String s) |
public static boolean isHTMLTaggedText(java.lang.String text)
text
- The text to check.public static java.lang.String stripHTMLTags(java.lang.String taggedText)
taggedText
- Text from which to strip tags.public static java.lang.String escapeHTML(java.lang.String s)
public static java.lang.String unescapeHTML(java.lang.String s)