Clean csv values; Update qfc - for audit count fix

This commit is contained in:
2023-05-19 11:51:20 -05:00
parent 61f7339400
commit 3a7cadf5c2
4 changed files with 19 additions and 10 deletions

View File

@ -418,6 +418,19 @@ class ValueUtils
return toPush;
}
/*******************************************************************************
** for building CSV in frontends, cleanse null & undefined, and escape "'s
*******************************************************************************/
public static cleanForCsv(param: any): string
{
if(param === undefined || param === null)
{
return ("");
}
return (String(param).replaceAll(/"/g, "\"\""));
}
}
////////////////////////////////////////////////////////////////////////////////////////////////