Package org.apache.maven.doxia.util
Class HtmlEntityUtils
java.lang.Object
org.apache.maven.doxia.util.HtmlEntityUtils
Utility class for escaping and unescaping HTML/XML entities.
This class provides methods that were previously supplied by Apache Commons Text.
- Since:
- 2.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringunescapeHtml4(String text) Unescapes HTML4 entities in a string.static StringunescapeXml(String text) Unescapes XML entities in a string.
-
Method Details
-
unescapeXml
Unescapes XML entities in a string.- Parameters:
text- the text to unescape- Returns:
- the unescaped text
-
unescapeHtml4
Unescapes HTML4 entities in a string.- Parameters:
text- the text to unescape- Returns:
- the unescaped text
-