Compare commits

..

No commits in common. "ff2b86358dd7bd3be10a48b3b9371bc9349367ca" and "d9b531f08d861fb7be74df3dd22cc159c9fb76c6" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "squidspirit-blog", "name": "squidspirit-blog",
"private": true, "private": true,
"version": "0.2.1", "version": "0.2.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",

View File

@ -5,9 +5,7 @@
const { html }: { html: string } = $props(); const { html }: { html: string } = $props();
const sanitizedHtml = $derived( const sanitizedHtml = $derived(sanitizeHtml(html));
sanitizeHtml(html, { allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img']) })
);
</script> </script>
{@html sanitizedHtml} {@html sanitizedHtml}