You can use the data() api to read the data-*
attribute
$(function () {
$(document).tooltip({
track: true,
items: "[data-title]",
content: function () {
return $(this).data('title').replace('|', '<br />');
}
});
});
Demo: Fiddle