I am reading in a value from a resource file (.resx) in C# and in that value, I have added \r\n\r\n so that it gets displayed in the correct format. e.g. blah\r\n\r\nblah
For some reason, the string automatically adds a '\' so effectively text becomes blah\\r\\n\\r\\nblah
and thus it escapes the character sequences.
Try to use Shift+Enter to add a new line in .resx file instead of \r\n
. Or replase like str = str.Replace("\\r\\n", "\r\n");