This commit is contained in:
Timothy Jaeryang Baek
2026-01-28 01:02:10 +04:00
parent 171940869b
commit 934bebd8cd

View File

@@ -1,5 +1,6 @@
<script lang="ts">
import type { WorkBook } from 'xlsx';
import DOMPurify from 'dompurify';
import { getContext, onMount, tick } from 'svelte';
@@ -118,11 +119,11 @@
const range = XLSX.utils.decode_range(worksheet['!ref'] || 'A1:A1');
rowCount = range.e.r - range.s.r + 1;
excelHtml = XLSX.utils.sheet_to_html(worksheet, {
excelHtml = DOMPurify.sanitize(XLSX.utils.sheet_to_html(worksheet, {
id: 'excel-table',
editable: false,
header: ''
});
}));
};
$: if (selectedSheet && excelWorkbook) {