I have a string that was encoded with AntiXssEncoder
"Some text,\r\n\r
Another text .\r\n\r\nThird text "
I want to replace 
 with <br/> or \n for new line, but when I check if string contains
"
" result in false,
Also Replace("
","<br/>") does not replace anything

Are you sure, you're not just throwing the generated string away returned by .Replace()?
This should work: