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:
-
Updated
Sep 26, 2026 - JavaScript
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:
go-xss is a module used to filter input from users to prevent XSS attacks
It removes all unwanted HTML elements and attributes, no matter how malformed HTML input you give it. Checks on attribute values. Can be used to avoid Cross-Site Scripting (XSS), Buffer Overflows and Denial of Service attacks, among other things.
A ultra-fast, highly tolerant XSS sanitizer for HTML, MathML, and SVG. Built in JavaScript for modern browsers and Node.js, it strips malicious execution vectors while preserving clean HTML content.
To associate your repository with the prevent-xss-attacks topic, visit your repo's landing page and select "manage topics."