Files
liquid/filters/escape_once.md
2016-03-15 19:36:23 -04:00

395 B

title
title
escape_once

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

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