escape - Liquid Filter Reference - 1.0.0

Filter Name escape
Group Text
Version 1.0.0

Description

Escapes a string by replacing characters with escape sequences (so that the string can be used in a URL, for example). It doesn’t change strings that don’t have anything to escape.

Examples

{{ "Click 'Add to Cart' when you're ready to purchase" | escape }}
Click 'Add to Cart' when you're ready to purchase
{{ "Nothing to see here" | escape }}
Nothing to see here

Back to Filter List

Back to Liquid Reference for 1.0.0

 

 
Back to Documentation