Converts plain text to HTML.
toHMTL(string)
Specifies the string to be converted (original string is not modified).
Returns a string that has special characters converted to their HTML encoded strings.
The following characters are converted as indicated in the following table:
|
Character |
Result |
|---|---|
|
< |
< |
|
> |
> |
|
& |
& |
|
$ |
$ |
|
“ (double quote) |
" |
|
Carriage Returns/Line Feeds |
<BR> |
|
Tabs |
&ndsp; (repeatedly until a tab stop is encountered; tab stops are every four spaces) |
|
Spaces |
|
|
(Escape) |
 |
To convert extended characters (those with ASCII values greater than 127), use toHTMLExt or toDisplay.