@one-paragon/angular-utilities 2.2.13 → 2.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4643,7 +4643,7 @@ class ExportToCsvService {
|
|
|
4643
4643
|
return val;
|
|
4644
4644
|
}
|
|
4645
4645
|
cleanValForCsv(val) {
|
|
4646
|
-
if (typeof val === 'string' && (val.includes(',
|
|
4646
|
+
if (typeof val === 'string' && (val.includes(',') || val.includes('"') || val.includes('\n'))) {
|
|
4647
4647
|
val = val.replaceAll('"', '""');
|
|
4648
4648
|
val = '"' + val + '"';
|
|
4649
4649
|
}
|