public class EscapeCommonXML extends Object
Constructor and Description |
---|
EscapeCommonXML()
Build the map to undecode HTML characters.
|
Modifier and Type | Method and Description |
---|---|
static EscapeCommonXML |
getInstance() |
static void |
main(String[] args) |
String |
removeCommonHTMLTags(String text)
Remove common HTML tags in a string
|
String |
removeHTMLTagsAndUnescape(String text)
Remove common HTML tags in a string and unescape entities
|
String |
unescapeXML(String text)
Unescape XML characters
|
public EscapeCommonXML()
public static EscapeCommonXML getInstance()
public String unescapeXML(String text)
text
- the string to unescapepublic String removeCommonHTMLTags(String text)
text
- the source stringpublic String removeHTMLTagsAndUnescape(String text)
text
- the source stringpublic static void main(String[] args)
Copyright © 2016. All rights reserved.