|
@@ -1,4 +1,4 @@
|
|
|
-
|
|
|
+
|
|
|
* SMFtooltip, Basic JQuery function to provide styled tooltips
|
|
|
*
|
|
|
* - will use the hoverintent plugin if available
|
|
@@ -31,14 +31,14 @@
|
|
|
tooltipSwapClass: 'smf_swaptip',
|
|
|
tooltipContent: 'html'
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
|
|
|
var oSettings = $.extend({}, $.fn.SMFtooltip.oDefaultsSettings , oInstanceSettings || {});
|
|
|
|
|
|
|
|
|
$(this).each(function()
|
|
|
{
|
|
|
- var sTitle = $('<span class="' + oSettings.tooltipSwapClass + '">' + this.title + '</span>').hide();
|
|
|
+ var sTitle = $('<span class="' + oSettings.tooltipSwapClass + '">' + htmlspecialchars(this.title) + '</span>').hide();
|
|
|
$(this).append(sTitle).attr('title', '');
|
|
|
});
|
|
|
|
|
@@ -107,6 +107,11 @@
|
|
|
$('#' + oSettings.tooltipID).fadeOut('slow').trigger("unload").remove();
|
|
|
}
|
|
|
|
|
|
+ function htmlspecialchars(string)
|
|
|
+ {
|
|
|
+ return $('<span>').text(string).html();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
return this.each(function(index)
|
|
|
{
|