Escape to HTML

Hi All,

Is there an easy way (besides coding it myself) to escape strings in lotusscript to HTML.

ie. I want all non-html characters to be escaped

like " to "

or

< to &lt

or

to &gt

or

& to &

Thanks