Class EntityUtils


  • public final class EntityUtils
    extends java.lang.Object
    An utility class to handle entities.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String unescapeEntity​(java.lang.String input)
      Computes the character represented by the given entity.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • unescapeEntity

        public static java.lang.String unescapeEntity​(java.lang.String input)
        Computes the character represented by the given entity. The entity can be given as #xx or as uXXXX. Other form are wrapped into `&` and `;`. This wrapping is allowed as Asciidoctor supports HTML entities, so we don't have to maintain a translation table.
        Parameters:
        input - the entity
        Returns:
        the represented character