Sanitize values for CSV. #7697
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ const parseCsv = (data, filters = []) => {
|
|||
// Apply filters
|
||||
Object.entries(item).forEach(([key, value]) => {
|
||||
if (!filters.includes(key)) {
|
||||
const sanitizedValue = '"' + String(value).replaceAll('"', '\\"') + '"';
|
||||
const sanitizedValue = '"' + value + '"';
|
||||
row.push(sanitizedValue);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue