This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@jill64/svelte-sanitize
TypeScript icon, indicating that this package has built-in type declarations

2.1.4Β β€’Β PublicΒ β€’Β Published

@jill64/svelte-sanitize

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

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

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
    hook?: DOMPurify Hooks function
  } */}
/>

Same as all parameters @jill64/universal-sanitize

License

MIT

/@jill64/svelte-sanitize/

    Package Sidebar

    Install

    npm i @jill64/svelte-sanitize

    Weekly Downloads

    144

    Version

    2.1.4

    License

    MIT

    Unpacked Size

    6.06 kB

    Total Files

    7

    Last publish

    Collaborators

    • npm-support