escape
Replace special characters with XML escapes:
& (ampersand) is replaced by &
< (less than) is replaced by &lt;
> (greater than) is replaced by &gt;
" (double quote) is replaced by &quot;
' (single quote / apostrophe) is replaced by &apos;
Content copied to clipboard
Return
The escaped string.
Parameters
string
The string to be escaped.