Replacing dashes in strings

Hi all,

I’m facing a strange issue when trying to replace dashes in strings.

Whenever I try to replace anything else, it works, but not with dashes, which are the chars I want to replace …

I even tried to split on dash et join after, not working either.

Any ideas ?

{% input custom.test.texte %}
{% capture texte_o %}{{custom.test.texte}}{% endcapture %}

{% assign texte = texte_o | remove:'-' %}

{% capture texte2 %}{{texte_o | replace: '-',''}}{% endcapture %}

{{texte_o | escape}}


Sorry for the late response but this should be fixed by now. :slight_smile:

Kind regards