Preventative measures against XSS attacks