Usage with Nuxt 3 In your Nuxt folder, add the isomorphic-dompurify dependency and create a new plugin plugins/dompurify-html.ts with the following content:import VueDOMPurifyHTML from 'vue-dompurify-html'; import { JSDOM } from 'jsdom'; import DOMPurify from 'isomorphic-dompurify'; export ...
vue3 vue-dompurify-html 文心快码BaiduComate 1. Vue3 简介 Vue3 是一个用于构建用户界面的渐进式框架。与 Vue2 相比,Vue3 带来了许多改进和新特性,主要包括: 性能提升:通过 Proxy 代理和更高效的响应式系统,Vue3 在性能上有了显著提升。 组合式 API(Composition API):提供了更灵活的组件逻辑组织方式,解决...
nuxt3:vue-dompurify-html nuxt3:vue-dompurify-html 一、引出vue-dompurify-html v-html可能引起跨站脚本攻击(Cross-Site Scripting 简称 XSS)。 所以,在网站上动态渲染任意 HTML 是非常危险的,因为容易导致 [XSS攻击]。只在可信内容上使用 v-html,永不用在用户提交的内容上。 仅用于展示的内容个人觉得可以使用。
"name": "vue-dompurify-html-example-vue3", "private": true, "dependencies": { "vue": "3.4.29", "vue": "3.4.30", "vue-dompurify-html": "workspace:*" }, "devDependencies": { 2 changes: 1 addition & 1 deletion 2 packages/vue-dompurify-html/package.json Original file line number...
"name": "vue-dompurify-html-example-vue3", "private": true, "dependencies": { "vue": "3.2.37", "vue-dompurify-html": "workspace:*" }, "devDependencies": { "@vitejs/plugin-vue": "2.3.3", "typescript": "4.7.4", "vite": "2.9.14", "vue-tsc": "^0.38.5" }, "scripts"...
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
Code Issues 3 Pull requests 3 Actions Security Insights Releases v5.2.0 5.2.0Latest Compare LeSuisse released this 24 Nov 21:11 · 35 commits to main since this release v5.2.0 be36aff What's Changed Mainly: chore: Adjust types to be aligned with the types of DOMPurify 3.2.1 by...
LeSuisse/vue-dompurify-htmlPublic Sponsor NotificationsYou must be signed in to change notification settings Fork21 Star289 Code Issues3 Pull requests Actions Security Insights Additional navigation options Commit Browse files main (#2835) v5.1.0 ...
<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> ...
chore: Bump nixpkgs pin 3be510b View details LeSuisse merged commit 169ce77 into main Mar 9, 2025 3 checks passed LeSuisse deleted the bump-nixpkgs-pin-march25 branch March 9, 2025 17:31 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to ...