Skip to content

Instantly share code, notes, and snippets.

@ejknapp
Created December 1, 2009 01:36
Show Gist options
  • Save ejknapp/245978 to your computer and use it in GitHub Desktop.
Save ejknapp/245978 to your computer and use it in GitHub Desktop.
// Escape double quotes in new messages
-(NSString *)escapeString:(NSString *)string {
NSString *cleanString = [string stringByReplacingOccurrencesOfString:@"\""
withString:@"\\\""];
return cleanString;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment