I am working on an application where I store the email text in my database. I am setting the word [NEW_LINE] in the text to do a new line. I then do a Replace() function and replace it with Environment.NewLine. Everything is good except for some reason
at the end of each line (like after the [NEW_LINE] word) and before the new line I get
"\r\n\t\t\t\t\t\t".
after I read it in in a string variable in C#.
Any idea what is generating this? I can then do a .Replace('\n",string.Empty).Replace('\r",string.Empty).Replace('\t",string.Empty) and remove these with no issues and everything works.
I just don't understand where those are generating from when I am pulling the information from my database. Is there any other escape characters that could be in there at random times that I need to account for possibly?
Go to the complete details ...