HtmlDecode

Returns the text form of the HTML 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 &gt;, replaces the less than sign (<) with &lt;, and replaces the ampersand sign (&) with &amp;.

Syntax

HtmlDecode(text)

Enabled For

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
Client Expressions Yes
Object Permissions No
Services Yes
LDAP Yes
Mobile Yes
Quick Actions (except UI Quick Actions) Yes
UI Quick Actions Yes
Reports Yes
Search/Dashboard without field references Yes
Search/Dashboard with field references No

Parameters

Parameter Description
text The text to decode.

Return Value

Unicode text value.

Example

$(HtmlDecode("Put &lt;bold&gt; before the text &amp; &lt;/bold&gt; 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."