Files
liquid/_filters/replace.md
2019-07-28 16:27:13 -04:00

459 B

title, description
title description
replace Liquid filter that replaces all occurences of a given substring in a string.

Replaces every occurrence of an 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" }} ```