title: Inserting a newline into a pre tag (IE, Javascript)
body: <p>In IE when I insert text into a <code>&lt;pre&gt;</code> tag the newlines are ignored:</p>
  
  <pre><code>&lt;pre id="putItHere"&gt;&lt;/pre&gt;
  
  &lt;script&gt;
  function putText() {
     document.getElementById("putItHere").innerHTML = "first line\nsecond line";
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Using <code>\r\n</code> instead of a plain <code>\n</code> does not work. </p>
  
  <p><code>&lt;br/&gt;</code> does work but inserts an extra blank line in FF, which is not acceptable for my purposes.</p>