replace
string | replace: string, string
returns string
Replaces any instance of a substring inside a string with a given string.
{{ product.handle | replace: '-', ' ' }}
{{ product.handle | replace: '-', ' ' }}
{
"product": {
"handle": "komodo-dragon-scale"
}
}
Output
komodo dragon scale
Was this page helpful?