c# remove charater from text 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());