The toHTML(...) function has only one variation, not counting syntax variations. It makes a copy of a String value converting it from plain text to formatted HTML.

Syntax:
toHTML( source-string )
source-string.toHTML()

Parameter Description
source-string

The String from which to copy.