public class HtmlEntities
extends Object
Provides HTML and XML entity utilities.
| Modifier and Type | Class and Description |
|---|---|
static class |
HtmlEntities.Unescaped
The result of an unescape.
|
| Modifier and Type | Field and Description |
|---|---|
static HtmlEntities |
HTML40
The set of entities supported by HTML 4.0.
|
| Constructor and Description |
|---|
HtmlEntities() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntities(String[][] entityArray) |
void |
addEntity(String name,
int value) |
int |
entityValue(String name) |
HtmlEntities.Unescaped |
unescape(String str)
Unescapes the entities in a
String. |
public static final HtmlEntities HTML40
The set of entities supported by HTML 4.0.
public void addEntities(String[][] entityArray)
public void addEntity(String name,
int value)
public int entityValue(String name)
public HtmlEntities.Unescaped unescape(String str)
Unescapes the entities in a String.
For example, if you have called addEntity("foo", 0xA1), unescape("&foo;") will return "ยก"
str - The String to escape.String.