Question: what is the difference between data validation and input sanitization?
Answer: Validation: Validation is the process of ensuring that input data falls within the expected domain of valid program input. ... Sanitization may include the elimination of unwanted characters from the input by means of removing, replacing, encoding, or escaping the characters.