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.jsCtrl+Enter run ยท Ctrl+Shift+Enter submit
Loading...
Console Output
Run your code to see the output here...