AI2 Component
(Version nb184)
|
Static Public Member Functions | |
static Character | toCharacter (String entityName) |
static String | decodeHtmlText (String htmlText) |
A mapping of Html entity names and their unicode codes.
Note: This was copied from the com.google.apps.mtrx.common.format.HtmlEntities and com.google.apps.mtrx.common.format.HtmlUtil classes.
Definition at line 22 of file HtmlEntities.java.
|
static |
Decodes the given HTML text value.
HTML Character Entities such as &, <, >, ', and " are changed to &, <, >, ', and ". Entities such as &#xhhhh, and &#nnnn are changed to the appropriate characters. Unrecognized entities are not decoded and no exception is thrown.
htmlText | the HTML text to decode |
Definition at line 319 of file HtmlEntities.java.
|
static |
Converts a named HTML entity such as "nbsp" or "amp" to its corresponding unicode character.
entityName | Name of the entity to convert to a character. |
Definition at line 302 of file HtmlEntities.java.