public class EntitiesToUnicode
extends java.lang.Object
Constructor | Description |
---|---|
EntitiesToUnicode() |
Modifier and Type | Method | Description |
---|---|---|
static char |
decodeEntity(java.lang.String name) |
Translates an entity to a unicode character.
|
static java.lang.String |
decodeString(java.lang.String s) |
Translates a String with entities (&...;) to a String without entities,
replacing the entity with the right (unicode) character.
|
public static char decodeEntity(java.lang.String name)
name
- the name of the entitypublic static java.lang.String decodeString(java.lang.String s)
Copyright © 1998–2018. All rights reserved.