Sanitization, validation, and documentation