public class StringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeString(String s)
Escape a String converting non ASCII characters to their associated XML escaped representation.
|
static String |
escapeString(String s,
String charset)
Escape a String converting non ASCII characters to their associated XML escaped representation.
|
public static String escapeString(String s)
escapeString(java.lang.String, java.lang.String) with the charset argument set to null.s - the Stringpublic static String escapeString(String s, String charset)
és - the Stringcharset - the character set or null for the UTF-8 charset