title: [NSString stringByReplacingOccurrencesOfString:@""" withString:@""""];
body: <p>I have an <code>NSString</code> and want to save it in <code>CSV</code> format. Because of this, I am replacing all <code>"</code> with <code>""</code>. I tried the following code but the compiler reports an error for it.</p>
  
  <pre><code>newString = [oldstring stringByReplacingOccurrencesOfString:@""" withString:@""""];
  </code></pre>
  
  <p>where oldstring is <code>11th ave, "L&amp;T", Khar</code>. oldstring is set from user input.</p>
  
  <p>How can I end up with newString set to <code>11th ave, ""L&amp;T"", Khar</code>?</p>
  
  <p>Any help will be appreciated.</p>