j - Liquid Filter Reference - 0.11.2

Filter Name j
Group Text
Version 0.11.2

Description

Escapes carriage returns and single and double quotes for JavaScript segments.

Examples

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

Back to Filter List

Back to Liquid Reference for 0.11.2

 

 
Back to Documentation