Flask - Security Best Practices
Which of the following is the correct way to safely display a user input variable named
user_input in a Flask template to prevent XSS?user_input in a Flask template to prevent XSS?{{ user_input }} automatically escapes content, preventing XSS.|safe filter disables escaping and should be used only with trusted content.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions