public class HTMLEntityRefs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static HTMLEntityRefs |
V2_0 |
static HTMLEntityRefs |
V3_2 |
static HTMLEntityRefs |
V4_0 |
static HTMLEntityRefs |
XHTMLV1_0 |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fromEntityRefsToUnicodeString(java.lang.String string)
Processes the input string and replaces all appearances of entity references that are valid under the htmlVersion specified with their actual codepoint value.
|
java.lang.String |
toString() |
static java.lang.String |
toXML(java.lang.String string)
Gets the XML version of the input string, i.e.
|
public static final HTMLEntityRefs V2_0
public static final HTMLEntityRefs V3_2
public static final HTMLEntityRefs V4_0
public static final HTMLEntityRefs XHTMLV1_0
public static java.lang.String toXML(java.lang.String string)
string
- the string to be rendered to valid xmlpublic java.lang.String fromEntityRefsToUnicodeString(java.lang.String string)
string
- The input string to be "sanitized" from nnnn and hhhh appearances, as well as any named entity refs valid in the given html Version.public java.lang.String toString()
toString
in class java.lang.Object