We use CDATA to wrap text values to guarantee that you can use special characters, but this sometimes might cause issues if you need to parse the output yourself.
If that is the case, you can suppress the CDATA by setting gridOptions.suppressTextAsCDATA = true
From our docs
https://www.ag-grid.com/javascript-grid-excel/
suppressTextAsCDATA
: Since v17 the default behavior of exporting text is to include CDATA tags to avoid any text parsing issues, but if this is incompatible to your current approach, you can switch this off by setting this to true.
Note that if you use this, you will need to manage yourself any special character like '>' or '<'. You can do this by using
processCellCallback
: Allows you to process (typically format) cells for the export.
Comments
0 comments
Please sign in to leave a comment.