title: Convert HTML-encoded &lt; br/ &gt; to html new line tag in jquery .text()
body: <p>I have some text in a variable <code>sometext</code> which I want to assign to <code>div</code> using <code>$('div').text(sometext);</code>. The problem is that all <code>&lt;br/&gt;</code>s in <code>sometext</code> turn into <code>&amp;lt; br/ &amp;gt;</code>. I cannot use <code>$('div').html()</code> because there's a lot of internal structure that I want to retain within the <code>div</code>, so I can only use the <code>.text()</code> function. </p>
  
  <p>So once I've passed the text over the to the <code>div</code>, is there any way to change the encoded <code>&lt;br/&gt;</code> tag into a real line break in HTML? I mean something like this:</p>
  
  <pre><code>$('div').convertMyBRsToHTML();
  </code></pre>