svelte-purify

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

💎 Safe html expansion for Svelte with DOMPurify

▷ Installation

🌐 This is Render on Server

<script>
  import { Render } from 'svelte-purify'
  import { Render as RenderOnClient } from 'svelte-purify/browser-only'
</script>

<Render html={'<h2>🌐 This is Render on Server</h2>'} />
<RenderOnClient html={'<h2>💻 This is Render on Browser</h2>'} />