Jeradin / acf-dynamic-table-field

A Dynamic Fable field for Advanced Custom Fields
33 stars 6 forks source link

Double quotes as value #2

Closed gedeminas closed 9 years ago

gedeminas commented 9 years ago

When entering double quote (") in table field and, the table corrupts after saving and doesn't show any values at all. Although when exporting data to save (JSON.stringify(exportData()) / jquery.editttable.js line 216), double quotes are escaped by stringify function, ACF removes backslashes when saving to db. Maybe you will thing of something better, but my quickfix was to convert double quotes in exportData() like this: value = value.replace(/"/g, """);

P.S. I've been using ACF v4

Jeradin commented 9 years ago

Delayed reply! I think this is fixed. Again sorry for not getting to this sooner.