toHMTL

Converts plain text to HTML.

Syntax

toHMTL(string)

Parameters

string

Specifies the string to be converted (original string is not modified).

Returns

Returns a string that has special characters converted to their HTML encoded strings.

Remarks

The following characters are converted as indicated in the following table:

Character

Result

<

&lt;

>

&gt;

&

&amp;

$

&#36;

“ (double quote)

&quot;

Carriage Returns/Line Feeds

<BR>

Tabs

&ndsp; (repeatedly until a tab stop is encountered; tab stops are every four spaces)

Spaces

&nbsp;

(Escape)

&#27;

To convert extended characters (those with ASCII values greater than 127), use toHTMLExt or toDisplay.