ng-csv icon indicating copy to clipboard operation
ng-csv copied to clipboard

fix escaping fields

Open ycintre opened this issue 8 years ago • 1 comments

Escape the field with double quotes if it contains a double quote in the value.

This is specified in the RFC as follows:

6 . Fields containing line breaks (CRLF), double quotes, and commas should be enclosed in double-quotes.

ycintre avatar Mar 16 '16 12:03 ycintre

I also added a fix to the escape mechanism to use the user-specified field delimiter instead of hard-coded comma

ycintre avatar Mar 16 '16 13:03 ycintre