public class EntitiesToUnicode extends Object
Modifier and Type | Field and Description |
---|---|
static HashMap<String,Character> |
map
Deprecated.
use the getter (
getMap() ) instead of accessing this field directly |
Constructor and Description |
---|
EntitiesToUnicode() |
Modifier and Type | Method and Description |
---|---|
static char |
decodeEntity(String name)
Translates an entity to a unicode character.
|
static String |
decodeString(String s)
Translates a String with entities (&...;) to a String without entities,
replacing the entity with the right (unicode) character.
|
static Map<String,Character> |
getMap() |
@Deprecated public static final HashMap<String,Character> map
getMap()
) instead of accessing this field directlypublic static char decodeEntity(String name)
name
- the name of the entityCopyright © 2020. All rights reserved.