escape

Filter = 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

OUTPUT

{ "Have you read 'James & the Giant Peach'?" | escape }}

Have you read 'James & the Giant Peach'?

INPUT

OUTPUT

{{ "Tetsuro Takara" | escape }}

Tetsuro Takara