mirror of
https://github.com/kemko/liquid.git
synced 2026-01-02 08:15:41 +03:00
466 B
466 B
title, description
| title | description |
|---|---|
| replace | Liquid filter that replaces all occurences of a given substring in a string. |
Replaces every occurrence of the first argument in a string with the second argument.
Input
```liquid {% raw %} {{ "Take my protein pills and put my helmet on" | replace: "my", "your" }} {% endraw %} ```Output
```text {{ "Take my protein pills and put my helmet on" | replace: "my", "your" }} ```