title: Removing line breaks using C#
body: <p>I am getting a string from database field named 'Description' and it has line breaks. It looks like this:</p>
  
  <hr>
  
  <p>Header of Items</p>
  
  <p>Description goes here.This the description of items.</p>
  
  <hr>
  
  <p>How can I remove the line breaks. I tried following function but It is not working:</p>
  
  <pre><code>public string FormatComments(string comments)
  {
      string result = comments.Replace(@"\r\n\", "");
      result = result.Replace(" ", "");
      return result;
  }
  </code></pre>
  
  <p>Please suggest solution.</p>
  
  <p>Regards,
  Asif Hameed</p>