Class HtmlEntityUtil
- java.lang.Object
-
- org.xwiki.rendering.wikimodel.util.HtmlEntityUtil
-
public class HtmlEntityUtil extends Object
This class provides utility methods to access HTML entities with their respective descriptions and numerical codes.- Since:
- 4.0M1
- Version:
- $Id: 59b90ba04bab71b28d0783153cf8fc6e05051b36 $
-
-
Constructor Summary
Constructors Constructor Description HtmlEntityUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static chargetChar(String symbol)A character corresponding to the given symbol.static StringgetDescription(char ch)Returns description of the given characterstatic StringgetDescription(String symbol)Returns description of the given symbol.static StringgetSymbol(char ch)Returns a symbol corresponding to the given character ornullif nothing was found
-
-
-
Method Detail
-
getChar
public static char getChar(String symbol)
A character corresponding to the given symbol.- Parameters:
symbol- for this symbol the corresponding character will be returned- Returns:
- a character corresponding to the given symbol
-
getDescription
public static String getDescription(char ch)
Returns description of the given character- Parameters:
ch- for this character the corresponding description will be returned- Returns:
- description of the given character
-
getDescription
public static String getDescription(String symbol)
Returns description of the given symbol.- Parameters:
symbol- for this symbol the corresponding description will be returned- Returns:
- description of the given symbol
-
getSymbol
public static String getSymbol(char ch)
Returns a symbol corresponding to the given character ornullif nothing was found- Parameters:
ch- for this character the corresponding symbol will be returned- Returns:
- a symbol corresponding to the given character
-
-