public class SpecialEntity extends Object
This class contains map with special entities used in HTML and their unicodes.
| Modifier and Type | Method and Description |
|---|---|
static void |
addEntity(String entityName,
int intCode)
Add new entity to the set.
|
char |
getCharacter() |
String |
getDecimalNCR() |
static SpecialEntity |
getEntity(String key) |
String |
getEscapedValue() |
String |
getHexNCR() |
int |
getIntCode() |
String |
getKey() |
public static void addEntity(String entityName, int intCode) throws HtmlCleanerException
entityName - Entity name, for example "pound"intCode - Unicode of the entity, for example 163HtmlCleanerExceptionpublic static SpecialEntity getEntity(String key)
public String getKey()
public int getIntCode()
public char getCharacter()
public String getDecimalNCR()
public String getHexNCR()
public String getEscapedValue()
Copyright © 2006–2017. All rights reserved.