replace - Liquid Filter Reference
On this page
Description
Replaces every occurrence of the first argument in a string with the second argument.
| Property | Value |
|---|---|
| Return Type | string |
| Category | text |
Examples
```liquid
{{ “Baby shark do do do do” | replace: “do”, “oi” }} ```
Output: Baby shark oi oi oi oi
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.