The `AsText()` function returns the given HTML as text.
Syntax
AsText(html)
Returns
A text that includes all HTML tags.
Parameters
html
– an HTML text
Examples
AsText(RichText("<html><body>Welcome</body></html>"))
/* returns "<html><body>Welcome</body></html>" */
AsText(RichText("Welcome"))
/* returns "Welcome" */
AsText("<html><body>Welcome</body></html>")
/* This expression is invalid because the parameter is text instead of HTML */