Functions

htmlEncode

Supported By

Syntax

[the] htmlEncode of factor

htmlEncode ( expression )

Factor and expression yield strings.

Description

The htmlEncode function encodes XML tag characters, control characters, and non-ASCII characters in the specified string as HTML entities and returns the encoded string.

The characters &, <, >, ", ', and non-breaking space are encoded as &amp;, &lt;, &gt;, &quot;, &#39;, and &nbsp;, respectively. Control characters and non-ASCII characters are encoded as &#codepoint; where codepoint is the decimal integer representing that character's Unicode code point.

See Also

htmlDecode, urlEncode, urlDecode