Sanitize data for preventing XSS