Automating web application security testing
...craft a malicious URL and send it to the victim via email or any other mode of communication. When the victim visits the tampered link, the page is loaded along with the injected script that is executed in the context of the victim's session
The general principle behind preventing XSS is the proper sanitization (via, for instance, escaping...

