Theming multi-value fields in Views I added the field_tags to my view. 

Now I want to add a the tag name as a class name, so I can colour each tag differently. 

ex: 

&lt;div class="tag1"&gt;tag1&lt;/div&gt;
&lt;div class="tag2"&gt;tag2&lt;/div&gt;
&lt;div class="tag3"&gt;tag3&lt;/div&gt;


Unfortunately, unchecking display all values in same row is not an option for me since I need to limit the view to 4 results.

Therefore, somehow I need to be able to loop through them and attach each of them the tag name as a class name.

How can I achieve this?
The only work-around solution that I can think of would be to:

Create a separate view for the tags.

Then there I will be able to uncheck display all values in same row.

Re-write field to &lt;div class="{{ field_tags }}"&gt; {{ field_tags }} &lt;/div&gt;

Then use View Fields View to insert the Tags view as a field in my other view and pass the nid as contextual filter. 

Probably not the best solution, so if anyone has a better one I'd love to hear it.