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

616 B

title
title
escape

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 }} ```