I am trying to format the tooltips for the selections in select2. I am using an Ajax data source and generate responses with:
{
"id": "x",
"text": "<b>Some text</b>",
"title": "Some tooltip where breaks are important",
}
It looks like the markup is escaped and if I edit HTML in the chrome development mode I see that " " => "&nbsp;" so I have no control of the new lines.
Is there a way to avoid the escaping of the titles? I have the escapeMarkup setting but it only handles the regular data.
/Magnus