Pretend you have a string like this:
example_string = "
"Hi, My name is "Fohsap", and I'm dumb"
"Hi, Fohsap," she interrupted.
"
And you’re trying to get it into a CSV file like this:
"example_recipient","example_string","example_recipient2","example_string2",..."example_recipientN","example_stringN"
The comma should not be a problem (since you will use double quotes around each value), but you need to escape the double quotes. Here are some guidelines on this: CSV reader, but it actually depends on what you are using to read the file. You also need to be concerned about your newlines (for Excel as long as you are using quotes it’s not a problem, for Unix you need to do the normal Unix escape things like \n)