escape_once - Liquid Filter Reference - 1.0.0

Filter Name escape_once
Group Text
Version 1.0.0

Description

Escapes a string without changing existing escaped entities. It doesn’t change strings that don’t have anything to escape.

Examples

{{ "1 < 2 & 3" | escape_once }}
1 &lt; 2 &amp; 3
{{ "1 &lt; 2 &amp; 3" | escape_once }}
1 &lt; 2 &amp; 3

Back to Filter List

Back to Liquid Reference for 1.0.0

 

 
Back to Documentation