csharp replace crlf

Code Example - csharp replace crlf

                
                        // Remove all newlines from the 'example' string variable
string cleaned = example.Replace("\n", "").Replace("\r", "");