mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
695 B
695 B
title, description
| title | description |
|---|---|
| escape | Liquid filter that escapes URL-unsafe characters in a string. |
Escapes a string by replacing characters with escape sequences (so that the string can be used in a URL, for example). It doesn't change strings that don't have anything to escape.
Input
```liquid {%- raw -%} {{ "Have you read 'James & the Giant Peach'?" | escape }} {% endraw %} ```Output
```text {{ "Have you read 'James & the Giant Peach'?" | escape }} ```Input
```liquid {%- raw -%} {{ "Tetsuro Takara" | escape }} {% endraw %} ```Output
```text {{ "Tetsuro Takara" | escape }} ```