diff --git a/packages/react-bootstrap-table2-toolkit/src/csv/exporter.js b/packages/react-bootstrap-table2-toolkit/src/csv/exporter.js index cb967b5..4d4c5cd 100644 --- a/packages/react-bootstrap-table2-toolkit/src/csv/exporter.js +++ b/packages/react-bootstrap-table2-toolkit/src/csv/exporter.js @@ -42,7 +42,7 @@ export const transform = ( cellContent = m.formatter(cellContent, row, rowIndex, m.formatExtraData); } if (m.type === String) { - return `"${cellContent}"`; + return `"${`${cellContent}`.replace(/"/g, '""')}"`; } return cellContent; }).join(separator)).join('\n');