refac: apply DOMPurify to excel and office HTML render assignments (#24468)
This commit is contained in:
1 parent
7eeff2fdf9
commit
3746339cfc
2 files changed
+5
-3
No files matched your search
@@ -161,7 +161,7 @@
|
||||
const { excelToTable } = await import('$lib/utils/excelToTable');
|
||||
const worksheet = excelWorkbook.Sheets[selectedSheet];
|
||||
const result = await excelToTable(worksheet);
|
||||
excelHtml = result.html;
|
||||
excelHtml = DOMPurify.sanitize(result.html);
|
||||
rowCount = result.rowCount;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user