summaryrefslogtreecommitdiffstats
path: root/node_modules/xss/dist/test.html
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/xss/dist/test.html')
-rw-r--r--node_modules/xss/dist/test.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/xss/dist/test.html b/node_modules/xss/dist/test.html
new file mode 100644
index 0000000..cae361e
--- /dev/null
+++ b/node_modules/xss/dist/test.html
@@ -0,0 +1,15 @@
+<!doctype html>
+<html>
+<head>
+ <title>测试</title>
+ <meta charset="utf8">
+</head>
+<body>
+ <pre id="result"></pre>
+</body>
+</html>
+<script src="xss.js"></script>
+<script>
+var code = '<script>alert("xss");</' + 'script>';
+document.querySelector('#result').innerText = code + '\n被转换成了\n' + filterXSS(code);
+</script> \ No newline at end of file