StaticasOptionalstring: stringStaticescapeEscapes HTML code.
String with escaped code
StaticescapeEscapes JSON content.
String with escaped code
StaticextractIterates over the given string, line-by-line, looking for the given prefix. If found, returns the contents of the line after the prefix.
StaticfromConverts a given XML string to an object.
The XML representation of the object.
The deserialized object.
StaticisTaken from here: https://stackoverflow.com/questions/154059/how-do-you-check-for-an-empty-string-in-javascript
true if the given string is blank or contains only white-space
StaticnormalizeNormalizes a given string:
StaticreplacerEquivalent to JS 'replace'.
the string to process
the sequence we want to replace. To replace all occurrences, use a Regex with the 'g' modifier (e.g., /
the new value that will be used instead of the old value
the string after the replacement is done
StatictoStatictoConverts a given object to a XML string.
The object to serialize to XML.
The XML representation of the object.
StaticuuidReturns a random unique identifier.
Utility methods related to Strings.