escape_once - Liquid Filter Reference
On this page
Description
Escapes a string without changing existing escaped entities. It doesn’t change strings that don’t have anything to escape.
| Property | Value |
|---|---|
| Return Type | string |
| Category | text |
Examples
```liquid
{{ “1 < 2 & 3” | escape_once }} ```
Output: 1 < 2 & 3
```liquid
{{ “1 < 2 & 3” | escape_once }} ```
Output: 1 < 2 & 3
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.