text-to-xml-escaped
text →
text-to-xml-escaped() → text
Returns text escaped for use as XML character data without adding a containing element. Returns null for characters that are invalid in XML and preserves null, empty, and blank inputs.
Parameters
This function has no parameters.
Behavior
Escapes ampersands and angle brackets for XML text-node content. Quotation marks remain unchanged because the result is character data rather than an attribute value. Already escaped content is escaped again.
Examples
"A & B < C" | text-to-xml-escaped → "A & B < C"
Kind: Function
Scope: text/encoding
Aliases: None