NO-ISSUE Merged from release/0.2 (#75)
All checks were successful
Frontend CI / build (push) Successful in 1m6s
All checks were successful
Frontend CI / build (push) Successful in 1m6s
Reviewed-on: #75
This commit is contained in:
commit
ff2b86358d
@ -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