svelte-sanitize

Svelte Sanitize

šŸ’Ž Safe html expansion for Svelte with universal-sanitize

@jill64/svelte-sanitize

npm-version npm-license npm-download-month npm-min-size ci.yml website

šŸ’Ž Safe html expansion for Svelte with universal-sanitize

Demo

Installation

npm i @jill64/svelte-sanitize

If you have problems building with pnpm, try the following

pnpm i -D @jill64/universal-sanitizer

Usage

<script>
  import { Render } from '@jill64/svelte-sanitize'
</script>

<Render
  html={/* dirty html */}
  options={/* {
    sanitizeHtml?: sanitize-html options
    dompurify?: DOMPurify options
  } */}
/>

Same as all parameters @jill64/universal-sanitize

License

MIT

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes