Liquid Filter Reference for escape_once - v0.9.5

Filter Name escape_once
Group Text
Version 0.9.5

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 0.9.5

 

 
Back to Documentation