hard
+25 XP
ALGORITHM

XSS Prevention

Sanitize user input to prevent XSS attacks.
You're exploring as a guest. Create a free account to save progress and submit solutions.
main.js
Loading...
Console Output
Run your code to see the output here...