Skip to content

xmlEscape

xmlEscape(string) → string · XML

Escape XML special characters (<, >, &, ", '). See Chapter 22.

  • string (required): the string to escape
utlx
xmlEscape("price < 100 & tax > 0")         // "price &lt; 100 &amp; tax &gt; 0"
utlx
{
  Comment: xmlEscape($input.userComment)
}

Released under AGPL-3.0.