I have some html code in a C# string. If I look with the Text Visualizer of Visual Studio I can see it has numerous newlines in it. However, after i apply this code
string modifiedString = originalString.Replace(Environment.NewLine, "<br />");
and then I look with the Text Visualizer at modifiedString I can see it doesn't have anymore newlines except for 3 places. Are there any other character types than resemble newline and I am missing?
\r\n
inEnvironment.NewLine
– Soner Gönül Jan 8 '13 at 12:25