I\'m using the code below to create a jQuery dialog box. By default there is a close icon on title bar, but I want to add some of the other icons in title bar as well for di
Here is how you solve the jQuery UI 1.10.0 dialog title issue globally instead of one object at a time:
jQuery.widget('ui.dialog', jQuery.extend({}, jQuery.ui.dialog.prototype, {
_title: function(titleBar) {
titleBar.html(this.options.title || ' ');
}
}));
Now use the dialog widget as usual and your titles won't get escaped anymore.