# 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 < b & c" [xml/escape "say \"hi\""] # => "say "hi""
## Returns
The string with `&`, `<`, `>`, `"`, and `'` replaced by `&`, `<`,
`>`, `"`, and `'`. Safe for both text content and
double-quoted attribute values.
## See Also
`xml/unescape`, `xml/stringify`