title: HTML.Encode but preserve line breaks
body: <p>I take user input into a text area, store it and eventually display it back to the user.</p>
  
  <p>In my View (Razor) I want to do something like this...</p>
  
  <pre><code>@Message.Replace("\n", "&lt;/br&gt;")
  </code></pre>
  
  <p>This doesn't work because Razor Html Encodes by default. This is great but I want my line breaks. </p>
  
  <p>If I do this I get opened up to XSS problems. </p>
  
  <pre><code>@Html.Raw(Message.Replace("\n", "&lt;/br&gt;"))
  </code></pre>
  
  <p>What's the right way to handle this situation? </p>