query
On this page

escapeXML

lib.strings.escapeXML

Docs pulled from | This Revision | about 1 hour ago


Escapes a string such that it is safe to include verbatim in an XML document.

Type

string -> string

Examples

escapeXML usage example

escapeXML ''"test" 'test' < & >''
=> "&quot;test&quot; &apos;test&apos; &lt; &amp; &gt;"

Noogle also knows

Aliases