escape - Liquid Filter Reference - 0.10.11
Filter Name | escape |
Group | Text |
Version | 0.10.11 |
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 Liquid Reference for 0.10.11
Back to Documentation