c# replace escape double quote characters in string code example Example: escape double quotes c# string str = "He said to me, \"Hello World\". How are you?";