public class HTMLUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
convertCharEntity(String charEntity,
boolean lookupHTMLentities,
Hashtable userDefinedCharEntities)
Deprecated.
Converts a char entity to the matching character or string.
|
static String |
convertHTMLCharEntity(String charEntity)
Deprecated.
Converts an HTML char entity to the matching character or string.
|
static String |
convertXMLCharEntity(String charEntity)
Deprecated.
Converts an XML char entity to the matching character or string.
|
static String |
encodeString(String str)
Deprecated.
Encodes the specified string to "percent-encoding" or URL encoding.
|
public static String convertXMLCharEntity(String charEntity)
charEntity
- The char entity to convert (Not including the & and ;)public static String convertHTMLCharEntity(String charEntity)
charEntity
- The char entity to convert (Not including the & and ;)public static String convertCharEntity(String charEntity, boolean lookupHTMLentities, Hashtable userDefinedCharEntities)
charEntity
- The char entity to convert (Not including the & and ;)lookupHTMLentities
- true to include the basic HTML named char entities (unicode 160-255), false otherwiseuserDefinedCharEntities
- A hashtable containing (String,int) dentoing the char entity name and its unicodepublic static String encodeString(String str)
str
- The string to be encoded