HtmlEncode
Returns the HTML encoded form of the text that was passed in.
Some characters in HTML have special meaning and the browser does not render them literally. For example, the browser interprets any text enclosed by angle brackets (< and >) as an HTML tag that describes the formatting of the text. To display HTML code literally, including all of the syntax, it must be HTML encoded when sent to the browser. The system replaces certain characters that have special meaning in HTML with other characters. For example, the system replaces a greater than sign (>) with >, replaces the less than sign (<) with <, and replaces the ampersand sign (&) with &.
Syntax
HtmlEncode(text)
Enabled for
Search/Dashboard | No |
Business Rules | Yes |
Quick Actions | Yes |
Workflow Objects | Yes |
Reports | No |
Parameters
text | The text to encode. |
Return Value
Unicode text value.
Example
$(HtmlEncode("Put <bold> before the text & </bold> after the text to make it bold."))
The example above returns this: "Put <bold> before the text & </bold> after the text to make it bold."