historical/js-xss-for-mayaspace.git/example/web.html
2024-01-16 11:20:27 -06:00

19 lines
No EOL
423 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Test xss.js</title>
</head>
<body>
</body>
<script src="../dist//xss.js"></script>
<script>
document.querySelector('body').innerText = filterXSS('<a href="#" onclick="alert(/xss/)">click me</a>');
</script>
</html>