diff --git a/package.json b/package.json index 98e4397be..cf8131e5e 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "@sveltejs/kit": "2.5.18", "@sveltejs/vite-plugin-svelte": "^3.0.1", "@testing-library/svelte": "4.2.3", + "@types/dompurify": "^3.0.5", "@types/lodash-es": "^4.17.12", "@types/pako": "2.0.3", "@types/uuid": "9.0.8", @@ -73,6 +74,7 @@ "@mermaid-js/mermaid-zenuml": "^0.2.0", "daisyui": "2.52.0", "dayjs": "^1.11.7", + "dompurify": "^3.1.6", "js-base64": "3.7.7", "lodash-es": "^4.17.21", "mermaid": "10.9.1", diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index edae039f9..eef1d1eff 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -10,6 +10,7 @@