How to add term id as a class on every taxonomy term field?

How to add the term id (tid) as a CSS class on every taxonomy term field? Example: field_tags Multiple value. If I display it using the Link formatter, I have this result: <div class=”field field-name-field-tags”> <a href=”/tags/tag-1″ typeof=”skos:Concept” property=”rdfs:label skos:prefLabel”>Tag 1</a> <a href=”/tags/tag-2″ typeof=”skos:Concept” property=”rdfs:label[…]