UNPKG

dompurify

Version:

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

9 lines (7 loc) 217 B
window.alert = function() { window.xssed = true; }; QUnit.assert.contains = function( needle, haystack, message ) { var result = haystack.indexOf(needle) > -1; QUnit.push(result, needle, haystack, message); };