A utility library providing input sanitization using dompurify and Vue.js.
npm install v-sanitize-directive* This is a Vue 3 directive for sanitizing input fields using DOMPurify.


Using npm:
``bash`
npm i v-sanitize-directive
Then, import and register the component:
main.js
``
import { sanitizePlugin } from "v-sanitize-directive";
app.use(sanitizePlugin);
* Composition API
``
* Options API
``
v-model="text"
type="text" />
`* Example 2: Composition API - In your component.
`
v-model="text"
type="text" />
`* Example 3: Global Registration with Composition API.After globally registering the plugin, in your component.
`
v-model="text"
type="text" />
`* Example 4: Global Registration with Options API.After globally registering the plugin, in your component.
`
v-model="text"
type="text" />
``