vue-sanitize

JSON →
library 0.3.0 ·javascript
verified Jun 4, 2026

A Vue 3 plugin for client-side HTML sanitization, wrapping the popular sanitize-html library. Current stable version is 0.3.0 (released 2023-09-07, semver patch). Ships TypeScript types, requires Node >=18 and Vue ^3.0. Allows both Options API (this.$sanitize) and Composition API (useSanitize) usage. Supports per-call and default configuration options. Useful for scenarios like live markdown previews or rich text pasting where server-side sanitization must be complemented.