I'm trying to add a line break to a tooltip in my twig template. I used this: Add line break to tooltip in Bootstrap 3 solution and added the code to my table where I'd like to apply this for one column:
<td {% if item.uploadprofiles %}
data-toggle="tooltip"
data-html="true"
title={% for up in item.uploadprofiles %} "Upload Profile ID: {{ up.id }} <br> Upload Profile Name: {{ up.name }}" {% endfor %} {% endif %}>
{{ item.name }}
</td>
somehow, it's not working for me, even though I'm using everything (data-html etc.) like advised in the answer.
My output looks like that:
Upload Profile ID: 15 <br> Upload Profile Name: Example
Any idea why this could be?