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 163HtmlCleanerException
public 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–2018. All rights reserved.