jQuery UI: Tooltip HTML

Per T. Konan's request. Simple and straight to the point.

by dixalex

HTML

<a href="#" title="&#60;b&#62;Bolded Text or <br/>HTML Content&#60;/b&#62;">Anchor text</a>

JavaScript

$(document).tooltip({
     items: "[title]",
     content: function() {
         var element = $(this);
         if (element.is("[title]")) {
             return element.attr("title");
         }
     }
 });