escape_once - Liquid Filter Reference - 0.11.6

Filter Name escape_once
Group Text
Version 0.11.6

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.11.6

 

 
Back to Documentation