escape
Converts special characters in HTML (e.g. &, <>, etc.) to their corresponding escape sequences. Characters in the string that do not have a corresponding escape sequence are left unchanged.
string | escape() returns [string]
Params
-
stringstring: The string to be replaced.
Example
{{{ product.description | escape() }}}
Was this article helpful to you?