Hello,
I want to output my taxonomy tags in a li tag as filter attributes as shown below:
<li data-filter="
{% for tag in p.taxonomy.tag %}
{{ tag }}
{% endfor %}
">
It outputs this, for example if two tags are defined:
<li data-filter="FaënceFaçade">
Is there a way to have spaces between tags, but not at the beginning nor the end in order to have something like this?
<li data-filter="Faënce Façade">
It might be very simple but I spent hours without finding a solution. Any clue or help would be so much appreciated.