BLOG-72 fix: allow img tag to sanitizeHtml
This commit is contained in:
parent
2039edf5e9
commit
dc052c1927
@ -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