替代方案

DOMPurify

cure53/DOMPurify

DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:

标签

  • xss
  • sanitizer
  • dom
  • security
  • javascript
  • dompurify
  • prevent-xss-attacks
  • mathml