public final class LogFormatUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escapeAttribute(java.lang.String attributeString)
Returns an escaped version of the string suitable for inclusion in an XML
attribute.
|
static java.lang.String |
escapeElement(java.lang.String theString)
Check that the string does not contain any invalid XML characters, if no
invalid characters, returns the string, otherwise checks that the characters
are escaped properly.
|
static java.lang.Boolean |
hasUnescapedString(java.lang.String theString)
This function checks a string to make sure that all characters listed in
Escapable entities are escaped, and that the ampersands are part of an escape
sequence of some kind.
|
public static java.lang.String escapeAttribute(java.lang.String attributeString)
attributeString
- The string to escape.public static java.lang.String escapeElement(java.lang.String theString)
theString
- The string to escape.public static java.lang.Boolean hasUnescapedString(java.lang.String theString)
theString
- the string to check for unescaped charactersCopyright (c) 2015 - Pittsburgh Science of Learning Center