Possible Duplicate:
Sanitize/Rewrite HTML on the Client Side
I am working on a HTML5 and JQuery website that parse data from JSON files.
I have a doubt on how to prevent Prevent XSS flaws for this project and what I should do to optimize the HTML5 and Javascript to don´t have any issue with XSS.
XSS is a flaw that occurs only on sites that dynamically generate pages. Web sites with Static pages are not vulnerable to XSS.
XSS flaws are of three types.
Check out this link for good explanation on XSS. To avoid XSS you must perform input validations.