join
Converts an array into a string by concatenating all of its elements, separated by a specified separator.
Basic Usage
{% set product_tags = "tag1, tag2, tag3" | split(", ") %}
{{ product_tags | join(" | ") }}
Output: tag1 | tag2 | tag3
Converts an array into a string by concatenating all of its elements, separated by a specified separator.
{% set product_tags = "tag1, tag2, tag3" | split(", ") %}
{{ product_tags | join(" | ") }}
Output: tag1 | tag2 | tag3