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 application replaces certain characters that have special meaning in HTML with other characters. For example, the application replaces a greater than sign (>) with >, replaces the less than sign (<) with <, and replaces the ampersand sign (&) with &.
For a description of the business object categories, see Notes on "Enabled For".
|Business Object Category||Yes/No|
|Business Rules: Before-Save Rules||Yes|
|Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load)||Yes|
|Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load)||Yes|
|Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load)||Yes|
|Business Rules: Editing Rules||Yes|
|Business Rules: Initialization Rules||Yes|
|Business Rules: Read Only Rules||Yes|
|Business Rules: Required Rules||Yes|
|Business Rules: Validation Rules||Yes|
|Quick Actions (except UI Quick Actions)||Yes|
|UI Quick Actions||Yes|
|Search/Dashboard without field references||Yes|
|Search/Dashboard with field references||No|
|text||The text to encode.|
Unicode text value.
$(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."