💎 Safe html expansion for Svelte with universal-sanitize
npm i @jill64/svelte-sanitize
If you have problems building with pnpm, try the following
pnpm i -D @jill64/universal-sanitizer
<script>
import { Render } from '@jill64/svelte-sanitize'
</script>
<Render
html={/* dirty html */}
options={/* {
sanitizeHtml?: sanitize-html options
dompurify?: DOMPurify options
hook?: DOMPurify Hooks function
} */}
/>
Same as all parameters @jill64/universal-sanitize