j - Liquid Filter Reference - 1.0.0

Filter Name j
Group Text
Version 1.0.0

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 1.0.0

 

 
Back to Documentation