util
library
Functions
-
compact(String str)
→ String
-
Compact a string (replacing all whitespace with single spaces.)
-
indent(String text, [int level = 0])
→ String
-
Indent a string.
-
quoteAttribute(String text, [String quote = "\""])
→ String
-
Return quotes within an attribute's value.
-
quoteCdata(String cdata, [bool includeDelimiters = false])
→ String
-
Escape CDATA end delimiter, optionally including
!CDATA
and !CEND
delimiters around the result.
-
Escape comment end delimiters in a string, optionally wrapping in unescaped comment delimiters.
-
quoteRaw(String text)
→ String
-
Escape angle brackets and CDATA openers.