{"title":"j - Liquid Filter Reference","slug":"j-filter-reference","url":"https://support.storeconnect.com/articles/j-filter-reference","url_markdown":"https://support.storeconnect.com/articles/j-filter-reference.md","subtitle":null,"summary":"Escapes carriage returns, single quotes, and double quotes for safe use inside JavaScript strings. Use `j` when embedding Liquid output in script blocks.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, j, text, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nEscapes carriage returns and single and double quotes for JavaScript segments.\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\" | j }}\n```\n\n\n**Output:** `Click \\'Add to Cart\\' when you\\'re ready to purchase`\n\n\n```liquid\n\n{{ \"Nothing to see here\" | j }}\n```\n\n\n**Output:** `Nothing to see here`"}