Files
liquid/filters/escape_once.md
2016-04-02 18:46:32 -04:00

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

Input

```liquid {% raw %} {{ "1 < 2 & 3" | escape_once }} {% endraw %} ```

Output

```text {{ "1 < 2 & 3" | escape_once }} ```

Input

```liquid {% raw %} {{ "1 < 2 & 3" | escape_once }} {% endraw %} ```

Output

```text {{ "1 < 2 & 3" | escape_once }} ```