title: Remove empty line from string C#
body: <p>How can I remove empty line from a string for example:</p>
  
  <p>Turn this:</p>
  
  <p><a href="https://i.stack.imgur.com/wLnEA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wLnEA.jpg" alt="enter image description here"></a></p>
  
  <p>to This:</p>
  
  <p><a href="https://i.stack.imgur.com/qw3JT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qw3JT.jpg" alt="enter image description here"></a></p>
  
  <p>I used this code <code>text.Replace("\n","");</code> but it turns it to:</p>
  
  <p>testtesttes</p>