{"title":"escape - Liquid Filter Reference","slug":"escape-filter-reference","url":"https://support.storeconnect.com/articles/escape-filter-reference","url_markdown":"https://support.storeconnect.com/articles/escape-filter-reference.md","subtitle":null,"summary":"Replaces special characters like quotes and ampersands with HTML escape sequences. Use `escape` to safely embed user-generated content in HTML output.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, escape, text, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nEscapes 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.\n\n| Property | Value |\n|----------|-------|\n| **Return Type** | string |\n| **Category** | text |\n\n## Examples\n\n\n```liquid\n\n{{ \"Click 'Add to Cart' when you're ready to purchase\" | escape }}\n```\n\n\n**Output:** `Click \u0026#39;Add to Cart\u0026#39; when you\u0026#39;re ready to purchase`\n\n\n```liquid\n\n{{ \"Nothing to see here\" | escape }}\n```\n\n\n**Output:** `Nothing to see here`"}