title: Response.Write print text from database as HTML
body: <p>I'm storing text from a textarea to my database. This text can contain new lines, special characters etc. However I want to make sure that when I show it using response.write, it comes out exactly as if it was to show in the textarea control. The reason why I want to do this is because I want to give the user a print view form. The solution below does not work. Using ASP.NET/C#  </p>
  
  <p>e.g  </p>
  
  <pre><code>foreach (DataRow row in dview.Table.Rows)
  {
  Response.Write("&lt;tr&gt;");
                      Response.Write(String.Format("&lt;td&gt;{0}&lt;br/&gt;&lt;br/&gt;&lt;/td&gt;",   row[1].ToString().Replace("\n", "&lt;br/&gt;")));
                      Response.Write("&lt;/tr&gt;");
  </code></pre>
  
  <p>Thanks</p>