I want to protect the form of my xss website, and I want all my data to be correct and consistent, so I don't want to allow any scripts to be added to my db, because my data can be used by other web services, so I I want to be sure that my data is correct and will not cause any problems for others.
I want to do validation only in the input, and not in the output, so I will do the check only once, and also be sure that no scripts exist in my db.
EDIT : please add the last comment I added.
source
share