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
11 lines (9 loc) • 306 B
JavaScript
var
DOMPurify = require('purify.min'),
testSuite = require('test-suite'),
tests = require('fixtures/expect'),
xssTests = tests.filter( function( element ) {
if ( /alert/.test( element.payload ) ) { return element; }
});
QUnit.module('DOMPurify dist');
testSuite(DOMPurify, tests, xssTests);