title: Escaping of attribute values using jQuery.attr()
body: <p>When using jQuery to update the <code>title</code> attribute of an element, I find that the entities (notably <code>&amp;#10;</code>, which is the currently recommended way of adding line breaks in the <code>title</code> attribute) do not display correctly (the entity shows up as text, and is not parsed…).</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;!-- This works fine --&gt;
  &lt;div title="foo&amp;#10;bar"&gt;baz&lt;/div&gt;
  </code></pre>
  
  <p>But this:</p>
  
  <pre><code>&lt;div&gt;baz&lt;/div&gt;
  &lt;script&gt;
  $("div").attr('title', 'foo&amp;#10;bar'); // Escapes the &amp;
  &lt;/script&gt;
  </code></pre>
  
  <p>Is there a way to not have jQuery escape the value? I tried using <code>unescape()</code> before <code>.attr()</code>, but it didn't work…</p>