Skip to content

escape

HTML-escapes a string. (standard Liquid filter.)

Example

{{ "<b>&</b>" | escape }}

Output:

&lt;b&gt;&amp;&lt;/b&gt;