Filters

Replace & Split

String manipulation filters.

Copy or embed this snippet

{{ 'I like apples' | replace: 'apples', 'oranges' }}

{% assign words = 'one,two,three' | split: ',' %}
{{ words[1] }} <!-- Outputs: two -->

Embed this snippet on your blog or docs — attribution link appreciated: HTMLToLiquid Converter · Convert to Shopify section →

Generate Shopify sections

Free AI-powered converter — OS 2.0 compatible output with schema validation.

Start converting HTML