Compare commits
4 Commits
d9b531f08d
...
ff2b86358d
Author | SHA1 | Date | |
---|---|---|---|
ff2b86358d | |||
0896afe819 | |||
462b1a6efb | |||
7770a5b569 |
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "squidspirit-blog",
|
||||
"private": true,
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
@ -5,7 +5,9 @@
|
||||
|
||||
const { html }: { html: string } = $props();
|
||||
|
||||
const sanitizedHtml = $derived(sanitizeHtml(html));
|
||||
const sanitizedHtml = $derived(
|
||||
sanitizeHtml(html, { allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img']) })
|
||||
);
|
||||
</script>
|
||||
|
||||
{@html sanitizedHtml}
|
||||
|
Loading…
x
Reference in New Issue
Block a user