We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716f376 commit 923d2bfCopy full SHA for 923d2bf
src/lib/components/WorkBookTasks/WorkBookTasksTable.svelte
@@ -1,4 +1,6 @@
1
<script lang="ts">
2
+ import xss from 'xss';
3
+
4
import {
5
Label,
6
Table,
@@ -33,7 +35,7 @@
33
35
const target = event.target as HTMLElement;
34
36
37
if (target && target instanceof HTMLElement) {
- const newComment = target.innerText as string;
38
+ const newComment = xss(target.innerText as string);
39
40
// HACK: 代替手段として、50文字以下の場合のみ更新
41
if (newComment.length <= 50) {
0 commit comments