Sanitizing the input to curb XSS