ESCAPE_XML

Description

Returns a string with special XML characters replaced by their corresponding XML entities. Useful for safely including strings within XML documents.

Syntax

ESCAPE_XML(string) -> String

Parameters

ParameterData TypeRequiredDescription
stringStringYesA text value, merge field, or expression to escape.

Example

ESCAPE_XML("<note priority="high">Review & Approve</note>")
-- Returns "&lt;note priority=&quot;high&quot;&gt;Review &amp; Approve&lt;/note&gt;"