Compare commits
No commits in common. "ff2b86358dd7bd3be10a48b3b9371bc9349367ca" and "d9b531f08d861fb7be74df3dd22cc159c9fb76c6" have entirely different histories.
ff2b86358d
...
d9b531f08d
@ -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",
|
||||||
|
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user