I couldn't submit the bug to the website http://bugs.jqueryui.com/newticket. We expect that the html string isn't allowed in the closeText option as well as the popup ...
This plugin enables to close a jQuery UI dialog when clicking outside anywhere outside the dialog or the element that opened it. A simple demo is available as well. In order to use it, simply add ...