How to replace some characters in a string : <p>What is the best way to replace \n or \r or \r\n when they are between double quotes, with an empty string </p>

<p>using c#?</p>

<p>Example: "abc\ndef" should be "abcdef"</p>
