@humanspeak/svelte-purify

DOMPurify-powered HTML sanitization for Svelte

Utility Library Open Source
@humanspeak/svelte-purify website screenshot

Overview

@humanspeak/svelte-purify wraps DOMPurify in a Svelte component for rendering sanitized HTML. It accepts DOMPurify configuration options and works in server-rendered applications. Use it when HTML content needs sanitization before display.

Best For

Svelte apps that need to display sanitized HTML from dynamic sources.