<br />
did work if you are using qTip
For me, a 2-step solution (combination of formatting the title and adding the style) worked, as follows:
1) Format the title
attrbiute:
<a ref="#" title="First Line
Second Line
Third line">Hover Me</a>
2) Add this style to the tips
element:
white-space: pre-line;
Tested in IE8, Firefox 22, and Safari 5.1.7.
Just add this code snippet in your script:
$(function () {
$('[data-toggle="tooltip"]').tooltip()
});
and ofcourse as mentioned in above answers the data-html
should be "true"
. This will allow you to use html tags and formatting inside the value of title
attribute.