# xml/escape Escape XML special characters as entity references so arbitrary text can be embedded in markup. ## Syntax
[xml/escape $s]
## Parameters - `$s` — text to escape ## Examples
[xml/escape "a < b & c"]      # => "a &lt; b &amp; c"
[xml/escape "say \"hi\""]     # => "say &quot;hi&quot;"
## Returns The string with `&`, `<`, `>`, `"`, and `'` replaced by `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&apos;`. Safe for both text content and double-quoted attribute values. ## See Also `xml/unescape`, `xml/stringify`