title: Rendering newlines in escaped html
body: <p>We have a display message that is auto-generated by default, but may be overridden by GET vars  from the url. Since we need to treat the message as user input, it must be escaped for display. However, we want to retain the ability to include newlines.</p>
  
  <p><strong>Newlines as <code>&lt;br&gt;</code></strong><br>
  This won't work because escaping HTML destroys the <code>&lt;br&gt;</code> tag. </p>
  
  <p><strong>Newlines as <code>\n</code></strong><br>
  I can't figure out how to get <code>\n</code> to render as newlines. I thought putting it in a  tag would render correctly, but no luck: <a href="http://jsfiddle.net/7L932/" rel="noreferrer">http://jsfiddle.net/7L932/</a></p>