Package org.htmlcleaner
Class SpecialEntity
java.lang.Object
org.htmlcleaner.SpecialEntity
-
Constructor Summary
ConstructorsConstructorDescriptionSpecialEntity
(String key, int intCode, String htmlString, boolean htmlSpecialEntity) -
Method Summary
Modifier and TypeMethodDescriptionchar
getEscaped
(boolean htmlEscaped) getKey()
int
intValue()
boolean
-
Constructor Details
-
SpecialEntity
- Parameters:
key
- value between invalid input: '&' and the ';' example 'amp' for '&'intCode
-htmlString
-htmlSpecialEntity
- entity is affected by translateSpecialEntities property setting.
-
-
Method Details
-
getKey
- Returns:
- the key
-
intValue
public int intValue()- Returns:
- the intCode
-
getHtmlString
- Returns:
- the domString
-
getEscapedXmlString
-
getEscaped
-
isHtmlSpecialEntity
public boolean isHtmlSpecialEntity()- Returns:
- the translateSpecialEntities
-
charValue
public char charValue()- Returns:
intValue()
cast to an char
-
getDecimalNCR
- Returns:
- Numeric Character Reference in decimal format
-
getHexNCR
- Returns:
- Numeric Character Reference in hex format
-
getEscapedValue
- Returns:
- Escaped value of the entity
-