Skip to content

Commit 4c1bedd

Browse files
committed
fix: clear styles of post content
1 parent 3c19162 commit 4c1bedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/routes/items/+page.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
// return `src="${res}"`;
6161
// });
6262
63-
return DOMPurify.sanitize(replaced);
63+
return DOMPurify.sanitize(replaced, { FORBID_ATTR: ['class', 'style'] });
6464
}
6565
6666
let fixActionbar = true;

0 commit comments

Comments
 (0)