how to remove characters on a string in C# code example
Example: remove control characters from string c#
string input; // this is your input string
string output = new string(input.Where(c => !char.IsControl(c)).ToArray());
string input; // this is your input string
string output = new string(input.Where(c => !char.IsControl(c)).ToArray());