Takes a string of text and a delimiter, and returns a string with appropriately doubled quotes or escaped delimiters, suitable for including in a CSV record.
miva_csv_encode( text, delimiter )
Returns: An appropriately escaped or quoted string, or a copy of the original string if no quotes or delimiters were found.
  • text = String to escape
  • delimiter = separation character (for example, a "," for a comma-separated list).
User Annotations: miva_csv_encode