{"library":"vue-sanitize-directive","type":"library","category":null,"description":"vue-sanitize-directive is a Vue.js directive designed for declarative HTML sanitization within templates, powered by the flexible `sanitize-html` library. It provides a `v-sanitize` directive that can be used to remove potentially unsafe HTML content from user-provided input, offering various modifiers like `.strip`, `.basic`, `.inline`, and `.nothing` for different sanitization levels. The current stable version is 0.2.1. Recent updates in version 0.2.0 introduced support for both Vue 2.x and Vue 3.x, alongside experimental server-side rendering (SSR) capabilities. This package differentiates itself by integrating robust `sanitize-html` functionality directly into Vue's templating system, simplifying the process of displaying user-generated content safely. While convenient for client-side display, the documentation explicitly warns that primary validation and sanitization of user-provided input should always occur on the backend for robust security.","language":"javascript","status":"active","version":"0.2.1","tags":["javascript","vue","sanitization","sanitize","v-sanitize"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-sanitize-directive","imports":["import VueSanitize from 'vue-sanitize-directive'","<div v-sanitize=\"unsafeHtml\"></div>","import { VueSanitizeDirectiveSSR } from 'vue-sanitize-directive'"]},{"cmd":"yarn add vue-sanitize-directive","imports":[]},{"cmd":"pnpm add vue-sanitize-directive","imports":[]}],"homepage":"https://leopiccionia.github.io/vue-sanitize-directive","github":"https://github.com/leopiccionia/vue-sanitize-directive","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-sanitize-directive","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vue-sanitize-directive/compatibility"}}