Syntax:
Then: xx = TOHTML(yy)
Version Ref: 4.8 (not included in filePro Lite)
Description:
TOHTML() converts special HTML characters '<', '>', '"', and '&' to their HTML equivalents: < > " &
This permits you to include these characters within the text of an HTML document.
Example:
You want to display e-mail addresses. If you had:
addr = "Bill Randall <
wrandall@fileproplus.com
>"
...
HTML :TX addr
the e-mail address would not appear, as it would be interpreted as an HTML
tag. You would need to do:
addr = "Bill Randall <
wrandall@fileproplus.com
>"
...
HTML :TX TOHTML(addr)
which would generate:
Bill Randall <
wrandall@fileproplus.com>
;
This would be interpreted and displayed as expected.
(The function can be used anywhere in processing that an expression can be
used, not just in the HTML command itself.)