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