title: How to convert <br> to line breaks when downloadgin html as text file?
body: <p>I use following code to download a <code>DIV</code> content as a <code>text file</code>.</p>
  
  <p>In 'DIV` I have used  br tag for line brek. but when I download the text file the br is showed instead of line break.</p>
  
  <p>How to make line breaks in generated text file?</p>
  
  <pre><code>MemoryStream stream = new MemoryStream();
  StreamWriter writer = new StreamWriter(stream);
  writer.Write(Dvresult.InnerHtml);
  writer.Flush();
  stream.Position = 0;
  Response.AddHeader("content-disposition", String.Format("attachment;filename={0}", "Result.txt"));
  Response.ContentType = "text/plain";
  Response.BinaryWrite(stream.ToArray());
  Response.End();
  </code></pre>
  
  <p>This is part of result:</p>
  
  <p><img src="https://i.stack.imgur.com/zi7ju.png" alt="enter image description here"></p>