19 lines
No EOL
423 B
HTML
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> |