Class HTMLCharacterEntities

java.lang.Object
com.iizix.text.HTMLCharacterEntities

public class HTMLCharacterEntities extends Object
Table for HTML character entities.

Built from on 4th of March 2023.

Author:
Christopher Mindus
  • Constructor Details

    • HTMLCharacterEntities

      public HTMLCharacterEntities()
  • Method Details

    • getChars

      public static final String getChars(String string)
      Maps a String character entity to character(s). The string should only contain the actual text, not the surrounding "&...;" decoration.
      Parameters:
      string - The string without decorations, case sensitive, i.e. not including leading '&' and trailing ';'.
      Returns:
      The character(s) corresponding with the entity string, or null if not matching.
    • getWrongCaseChars

      public static final String getWrongCaseChars(String string)
      Maps a String character entity to a char. The string should only contain the actual text, not the surrounding "&...;" decoration.
      Parameters:
      string - The string without decorations, case sensitive, i.e. not including leading '&' and trailing ';'.
      Returns:
      null if OK, otherwise the correct case string.