escape - Liquid Filter Reference - 0.11.5

Filter Name escape
Group Text
Version 0.11.5

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 0.11.5

 

 
Back to Documentation