Now I am trying to hyphenize tags which have spaces, but if I do this:
{% set filter = p.taxonomy.prestation|join(' ')|hyphenize %}{{ filter }}
it outputs hyphens even between tags as shown below:
data-filter="sols-placo-peinture-cuisine-salle-de-bain"
Is there a solution to have hyphens only for tags, as following?
data-filter="sols placo peinture cuisine salle-de-bain"
I could not find out how to apply |hyphenize to tags only.