HtmlEncode Merge Method

Usage | Parameters | Examples | Remarks

The HtmlEncode merge method converts the parsed text to HTML-encoded text for use within XML or HTML elements. Encoding the text ensures that characters that cannot be used within element tags ('&', '<', '>' or '\') are encoded and made safe.

For example, the characters < and > are encoded as &lt; and &gt;

Usage

HtmlEncode(TextToEncode)

Converts the provided text into HTML-encoded text

Parameters

 TextToEncode  Text

Unencoded text that may include unsafe characters.

Examples

Example 1

Safely place a zone value into an xml text file's element.

In this example, the value of the UserComment zone will be encoded

Remarks

None