remove carriage returns from string csharp
Code Example - remove carriage returns from string csharp
// Remove newlines from both sides of the 'example' string variable
string cleaned = example.Trim('\r', '\n');