public class HTMLEntities
extends java.lang.Object
| Constructor and Description |
|---|
HTMLEntities()
Initialize HTML translation maps.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object[][] |
getEntitiesTable()
Get the html entities translation table.
|
static java.lang.String |
htmlAmpersand(java.lang.String str)
Replace & characters with & HTML entities.
|
static java.lang.String |
htmlAngleBrackets(java.lang.String str)
Replace < > characters with < > entities.
|
static java.lang.String |
htmlDoubleQuotes(java.lang.String str)
Replace double quotes characters with HTML entities.
|
static java.lang.String |
htmlentities(java.lang.String str)
Convert special and extended characters into HTML entitities.
|
static java.lang.String |
htmlQuotes(java.lang.String str)
Replace single and double quotes characters with HTML entities.
|
static java.lang.String |
htmlSingleQuotes(java.lang.String str)
Replace single quotes characters with HTML entities.
|
static java.lang.String |
unhtmlAmpersand(java.lang.String str)
Replace & HTML entities with & characters.
|
static java.lang.String |
unhtmlAngleBrackets(java.lang.String str)
Replace < > entities with < > characters.
|
static java.lang.String |
unhtmlDoubleQuotes(java.lang.String str)
Replace single quotes HTML entities with equivalent character.
|
static java.lang.String |
unhtmlentities(java.lang.String str)
Convert HTML entities to special and extended unicode characters
equivalents.
|
static java.lang.String |
unhtmlQuotes(java.lang.String str)
Replace single and double quotes HTML entities with equivalent characters.
|
static java.lang.String |
unhtmlSingleQuotes(java.lang.String str)
Replace single quotes HTML entities with equivalent character.
|
public static java.lang.Object[][] getEntitiesTable()
public static java.lang.String htmlentities(java.lang.String str)
str - input stringunhtmlentities(String)public static java.lang.String unhtmlentities(java.lang.String str)
str - input stringhtmlentities(String)public static java.lang.String htmlSingleQuotes(java.lang.String str)
str - the input stringpublic static java.lang.String unhtmlSingleQuotes(java.lang.String str)
str - the input stringpublic static java.lang.String htmlDoubleQuotes(java.lang.String str)
str - the input stringpublic static java.lang.String unhtmlDoubleQuotes(java.lang.String str)
str - the input stringpublic static java.lang.String htmlQuotes(java.lang.String str)
str - the input stringpublic static java.lang.String unhtmlQuotes(java.lang.String str)
str - the input stringpublic static java.lang.String htmlAngleBrackets(java.lang.String str)
str - the input stringpublic static java.lang.String unhtmlAngleBrackets(java.lang.String str)
str - the input stringpublic static java.lang.String htmlAmpersand(java.lang.String str)
str - the input stringpublic static java.lang.String unhtmlAmpersand(java.lang.String str)
str - the input string