The current version is only compatible with Vue 3. If you need Vue 2 support use a 4.1.x version.UsageYou can see setup examples in the examples/ folder.import { createApp } from 'vue'; import App from './App.vue'; import VueDOMPurifyHTML from 'vue-dompurify-html'; const app = ...
vue-dompurify-html@2.5.2 //这是支持vue2最后一个版本 方法一: <script src="https://cdn.jsdelivr.net/npm/vue-dompurify-html@5.0.1/dist/vue-dompurify-html.umd.min.js"></script> 方法二: //main.js import VueDOMPurifyHTML from 'vue-dompurify-html' Vue.use(VueDOMPurifyHTML) <template> <...
vue2 和 vue-dompurify-html 的概述 vue2 是什么? Vue.js 是一个用于构建用户界面的渐进式 JavaScript 框架。 Vue 2 是 Vue.js 的一个重要版本,它继承了 Vue 1 的优点,并且在性能、组件化、工具支持等方面进行了改进和优化。 Vue 2 的设计主要偏向于轻量级和易用性,适合快速构建单页面应用(SPA)。 vue-...
Name Last commit message Last commit date Latest commit renovate[bot] and LeSuisse chore(deps): update dependency nuxt to v3.17.4 May 21, 2025 f192d83·May 21, 2025 History 3,387 Commits .github examples packages/vue-dompurify-html
2 changes: 1 addition & 1 deletion 2 turbo.json Show comments View file Edit file Delete file Original file line numberDiff line numberDiff line change @@ -1,6 +1,6 @@ { "$schema": "https://turborepo.org/schema.json", "pipeline": { "tasks": { "typecheck": { "dependsOn"...
<script src="https:///npm/vue@2/dist/vue.js"></script> </head> <body> <div id="app"> <div class="outer"> <div class="menu"> <div class="item"> <div class="title"> 菜单一</div> <div class="con"> <div>111</div> ...
let vm = new Vue({ el:'#app' }); /* template中必须有唯一根元素div,包裹其他元素 */ </script> </body> </html> 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23.
For Yarn 2+ docs and migration guide, see yarnpkg.com. Package detail … 0 … https://yarn.pm/… … Use it $yarn add … Try in RunKit·Browse Files Popularity Downloads last 30 days 0 jsDelivr last 30 days 0 Dependents 0
2 Dependencies 0 Dependents 1 Versions vue-dompurify-htmlA "safe" replacement for the v-html directive. The HTML code is sanitized with DOMPurify before being interpreted.This is only a small wrapper around DOMPurify to ease its usage in a Vue app. You should take a look at the DOMPurify ...
Safe replacement for the v-html directive. Contribute to LeSuisse/vue-dompurify-html development by creating an account on GitHub.