{"ScriptPreparationCode":null,"TestCases":[{"Name":"Dompurify 2.3.3","Code":"const testString = \u0060\r\n\u003Cb onclick=\u0022console.log(0)\u0022\u003EWelcome to safeland\u003C/b\u003E\u003Cbr\u003E\r\n\u003Ca draggable=\u0022true\u0022 ondrag=\u0022console.log(1)\u0022\u003Etest\u003C/a\u003E\r\n\u003Ca id=x tabindex=1 onfocus=console.log(2)\u003Etest\u003C/a\u003E\r\n\u003Ca onclick=\u0022console.log(3)\u0022\u003Etest\u003C/a\u003E\r\n\u003Cmarquee onstart=console.log(4)\u003E\u003C/marquee\u003E\r\n\u003Cx ondrag=console.log(5)\u003Edrag this!\u003C/x\u003E\r\n\u003Ctitle onmouseover=\u0022console.log(6)\u0022\u003Etest\u003C/title\u003E\r\n\u003Cimg src/onerror=\u0022console.log(7)\u0022\u003E\r\n\u003Ctextarea onclick=\u0022console.log(8)\u0022\u003Etest\u003C/textarea\u003E\r\n\u003Ca href=\u0022javascript:console.log(9)\u0022\u003EThis is fun\u003C/a\u003E\u003Cbr\u003E\r\n\u003Cimg src=x onerror=\u0022console.log(10)\u0022\u003E\r\n\u003Cbutton formaction=\u0022javascript:alert(11)\u0022 onclick=\u0022javascript:alert(12)\u0022\u003E\u003C/button\u003E\r\n\u003Cmath href=\u0022javascript:alert(13)\u0022\u003ECLICKME\u003C/math\u003E\r\n\u003Cset attributeName=\u0022onmouseover\u0022 to=\u0022alert(14)\u0022/\u003E\r\n\u003Canimate attributeName=\u0022onunload\u0022 to=\u0022alert(15)\u0022/\u003E\r\n\u003Cvideo autoplay onplay=alert(16)\u003E\u003Csource src=\u0022validvideo.mp4\u0022 type=\u0022video/mp4\u0022\u003E\u003C/video\u003E\r\n\u003Cvar onpaste=\u0022alert(17)\u0022 contenteditable\u003Etest\u003C/var\u003E\r\n\u003Carticle onmouseout=\u0022alert(18)\u0022\u003Etest\u003C/article\u003E\r\n\u003Carea onclick=\u0022alert(19)\u0022\u003Etest\u003C/area\u003E\r\n\u003Ca onmouseover=\u0022alert(20)\u0022\u003Etest\u003C/a\u003E\r\n\u003Cbody onload=alert(21)\u003E\u003C/body\u003E\r\n\u003Chtml ontouchstart=alert(22)\u003E\u003C/html\u003E\r\n\u003Csvg onload=alert(23)\u003E\r\n\u003Cform action=javascript:alert(24)\u003E\u003Cinput type=submit\u003E\u003C/form\u003E\r\n\u003Caudio src/onerror=alert(25)\u003E\r\n\u0060\r\nconst result = DOMPurify.sanitize(testString)","IsDeferred":false},{"Name":"Sanitize-html 1.27.5","Code":"const testString = \u0060\r\n\u003Cb onclick=\u0022console.log(0)\u0022\u003EWelcome to safeland\u003C/b\u003E\u003Cbr\u003E\r\n\u003Ca draggable=\u0022true\u0022 ondrag=\u0022console.log(1)\u0022\u003Etest\u003C/a\u003E\r\n\u003Ca id=x tabindex=1 onfocus=console.log(2)\u003Etest\u003C/a\u003E\r\n\u003Ca onclick=\u0022console.log(3)\u0022\u003Etest\u003C/a\u003E\r\n\u003Cmarquee onstart=console.log(4)\u003E\u003C/marquee\u003E\r\n\u003Cx ondrag=console.log(5)\u003Edrag this!\u003C/x\u003E\r\n\u003Ctitle onmouseover=\u0022console.log(6)\u0022\u003Etest\u003C/title\u003E\r\n\u003Cimg src/onerror=\u0022console.log(7)\u0022\u003E\r\n\u003Ctextarea onclick=\u0022console.log(8)\u0022\u003Etest\u003C/textarea\u003E\r\n\u003Ca href=\u0022javascript:console.log(9)\u0022\u003EThis is fun\u003C/a\u003E\u003Cbr\u003E\r\n\u003Cimg src=x onerror=\u0022console.log(10)\u0022\u003E\r\n\u003Cbutton formaction=\u0022javascript:alert(11)\u0022 onclick=\u0022javascript:alert(12)\u0022\u003E\u003C/button\u003E\r\n\u003Cmath href=\u0022javascript:alert(13)\u0022\u003ECLICKME\u003C/math\u003E\r\n\u003Cset attributeName=\u0022onmouseover\u0022 to=\u0022alert(14)\u0022/\u003E\r\n\u003Canimate attributeName=\u0022onunload\u0022 to=\u0022alert(15)\u0022/\u003E\r\n\u003Cvideo autoplay onplay=alert(16)\u003E\u003Csource src=\u0022validvideo.mp4\u0022 type=\u0022video/mp4\u0022\u003E\u003C/video\u003E\r\n\u003Cvar onpaste=\u0022alert(17)\u0022 contenteditable\u003Etest\u003C/var\u003E\r\n\u003Carticle onmouseout=\u0022alert(18)\u0022\u003Etest\u003C/article\u003E\r\n\u003Carea onclick=\u0022alert(19)\u0022\u003Etest\u003C/area\u003E\r\n\u003Ca onmouseover=\u0022alert(20)\u0022\u003Etest\u003C/a\u003E\r\n\u003Cbody onload=alert(21)\u003E\u003C/body\u003E\r\n\u003Chtml ontouchstart=alert(22)\u003E\u003C/html\u003E\r\n\u003Csvg onload=alert(23)\u003E\r\n\u003Cform action=javascript:alert(24)\u003E\u003Cinput type=submit\u003E\u003C/form\u003E\r\n\u003Caudio src/onerror=alert(25)\u003E\r\n\u0060\r\nconst result = sanitizeHtml(testString)","IsDeferred":false},{"Name":"Js-XSS Latest","Code":"const testString = \u0060\r\n\u003Cb onclick=\u0022console.log(0)\u0022\u003EWelcome to safeland\u003C/b\u003E\u003Cbr\u003E\r\n\u003Ca draggable=\u0022true\u0022 ondrag=\u0022console.log(1)\u0022\u003Etest\u003C/a\u003E\r\n\u003Ca id=x tabindex=1 onfocus=console.log(2)\u003Etest\u003C/a\u003E\r\n\u003Ca onclick=\u0022console.log(3)\u0022\u003Etest\u003C/a\u003E\r\n\u003Cmarquee onstart=console.log(4)\u003E\u003C/marquee\u003E\r\n\u003Cx ondrag=console.log(5)\u003Edrag this!\u003C/x\u003E\r\n\u003Ctitle onmouseover=\u0022console.log(6)\u0022\u003Etest\u003C/title\u003E\r\n\u003Cimg src/onerror=\u0022console.log(7)\u0022\u003E\r\n\u003Ctextarea onclick=\u0022console.log(8)\u0022\u003Etest\u003C/textarea\u003E\r\n\u003Ca href=\u0022javascript:console.log(9)\u0022\u003EThis is fun\u003C/a\u003E\u003Cbr\u003E\r\n\u003Cimg src=x onerror=\u0022console.log(10)\u0022\u003E\r\n\u003Cbutton formaction=\u0022javascript:alert(11)\u0022 onclick=\u0022javascript:alert(12)\u0022\u003E\u003C/button\u003E\r\n\u003Cmath href=\u0022javascript:alert(13)\u0022\u003ECLICKME\u003C/math\u003E\r\n\u003Cset attributeName=\u0022onmouseover\u0022 to=\u0022alert(14)\u0022/\u003E\r\n\u003Canimate attributeName=\u0022onunload\u0022 to=\u0022alert(15)\u0022/\u003E\r\n\u003Cvideo autoplay onplay=alert(16)\u003E\u003Csource src=\u0022validvideo.mp4\u0022 type=\u0022video/mp4\u0022\u003E\u003C/video\u003E\r\n\u003Cvar onpaste=\u0022alert(17)\u0022 contenteditable\u003Etest\u003C/var\u003E\r\n\u003Carticle onmouseout=\u0022alert(18)\u0022\u003Etest\u003C/article\u003E\r\n\u003Carea onclick=\u0022alert(19)\u0022\u003Etest\u003C/area\u003E\r\n\u003Ca onmouseover=\u0022alert(20)\u0022\u003Etest\u003C/a\u003E\r\n\u003Cbody onload=alert(21)\u003E\u003C/body\u003E\r\n\u003Chtml ontouchstart=alert(22)\u003E\u003C/html\u003E\r\n\u003Csvg onload=alert(23)\u003E\r\n\u003Cform action=javascript:alert(24)\u003E\u003Cinput type=submit\u003E\u003C/form\u003E\r\n\u003Caudio src/onerror=alert(25)\u003E\r\n\u0060\r\nconst result = filterXSS(testString)","IsDeferred":false}]}