Reddit Interview Question

What is XSS and how do you mitigate it?