Methods to prevent XSS attacks

Use the Web to search for methods to prevent XSS attacks.

Write a brief description of more than one method.

Use your own words and supply references.

Post between 300 words.