Class HtmlEntityUtils

java.lang.Object
org.apache.maven.doxia.util.HtmlEntityUtils

public class HtmlEntityUtils extends Object
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 Details

    • unescapeXml

      public static String unescapeXml(String text)
      Unescapes XML entities in a string.
      Parameters:
      text - the text to unescape
      Returns:
      the unescaped text
    • unescapeHtml4

      public static String unescapeHtml4(String text)
      Unescapes HTML4 entities in a string.
      Parameters:
      text - the text to unescape
      Returns:
      the unescaped text