mirror of
https://github.com/kemko/liquid.git
synced 2026-01-07 18:55:41 +03:00
525 B
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 }} ```