Concept Flow - XSS prevention in templates
User Input Received
Template Rendering Begins
Escape Special Characters?
No→Raw Output (Unsafe)
Yes
Safe HTML Output Rendered
Browser Displays Content Safely
This flow shows how Django templates handle user input by escaping special characters to prevent unsafe HTML and scripts from running.