BUG: dialog title improperly encoded

BUG: dialog title improperly encoded


Hey,
I tried to trac this but had trouble logging in.
I haven't had time to go through the jquery-ui code to find the source
of the error but to reproduce:
<div id="rep" class="dialog" title="Encoding &amp; stuff"></div>
Then
$("#rep").dialog();
and you get a malformed XML result because the code generates:
<span id="ui-dialog-title-detail20" class="ui-dialog-title"
unselectable="on" style="-moz-user-select: none;">Encoding & stuff</
span>
which you'll notice loses the HTML entity for ampersand.
I assume this is because the data extracted from attr("title") is
automagically unencoded and isn't rencoded before being inserted.
Once again, sorry I didn't trac this but I had trouble logging in.
Regards,
mjec