I have no idea why is that. Here is my code and it works perfectly when I try it on localhost but when I upload my website my text has no \'s. Why this
Instead of using Environment.NewLine, try this:
Environment.NewLine
someString.Replace(@"\r\n", "");