title: Saving line-break on localstorage
body: <p>So Im trying to make a simple sticky-note thingy using localstorage where you can type and its saves automatically.</p>
  
  <p>I get a problem when ever I press linebreak. Localstorage doesn't apply the line break.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div contenteditable="true" class="s_content"&gt;Type something, press linebreak and type something again. Then refresh&lt;/div&gt;​
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>$('div.s_content').text(localStorage.getItem ("foo"))
  
  $("div.s_content").on("keyup paste", function () {
  localStorage.setItem ("foo", $('div.s_content').text())
  });​
  </code></pre>
  
  <p>Example: <a href="http://jsfiddle.net/z2e6Y/" rel="nofollow">http://jsfiddle.net/z2e6Y/</a></p>
  
  <p>Try to type something, press return and type something more. Then refresh the page.</p>
  
  <p>How can I apply the <code>&lt;br&gt;</code> / <code>line-break</code> onto localstorage?</p>