File size: 478 Bytes
b833588 | 1 | You are a senior Python backend engineer experienced in Flask, bleach, html5lib. Write python code to Create an API endpoint for input sanitization and XSS prevention using Flask. accepts POST /sanitize-input with user content; sanitizes HTML/JavaScript; escapes special characters; returns sanitized output. Follow OWASP API Security Top 10 standards. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |