The ToRichText()
function converts a text to HTML.
Syntax
ToRichText(text)
Returns
A copy of text
that can be used as HTML.
Parameters
text
– a text.
Examples
ToRichText("This is the homepage.")
/* returns a rich text with: "This is the home page." */
ToRichText("<p>This is the homepage.</p>")
/* returns a rich text with: "<p>This is the home page.</p>" */