title: jQuery text() and newlines
body: <p>I want to be able to say </p>
  
  <pre><code>$(someElem).text('this\n has\n newlines);
  </code></pre>
  
  <p>and it renders with newlines in the browser. The only workaround I have found is to set the css property 'white-space' to 'pre' on someElem. This almost works, but then I have an annoyingly large padding between the text and the top of someElem, even when I set padding to 0. Is there a way to get rid of this?</p>