ESCAPE_HTML4

Description

Returns a string with characters escaped according to HTML 4 standards. Converts special HTML characters into their corresponding HTML entities to safely display as literal text in web pages.

Syntax

ESCAPE_HTML4(string) -> String

Parameters

ParameterData TypeRequiredDescription
stringStringYesA text value, merge field, or expression to escape.

Example

ESCAPE_HTML4("<div>Hello, world!</div>")
-- Returns "&lt;div&gt;Hello, world!&lt;/div&gt;"