文章目录 场景cure53/DOMPurify推荐理由 场景 用户输入在后台是使用之前是要过滤的 cure53/DOMPurify github 地址cdn地址 推荐理由 上手容易,操作非常简单 var clean = DOMPurify.sanitize(dirty, {SAFE_FOR_JQUERY: true}); 快 The faster your browser, the faster DOMPurify will be