Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which template feature protects against cross-site scripting?

  1. A Automatic escaping of variables
  2. B The load tag
  3. C Template inheritance
  4. D The include tag
Answer

Automatic escaping of variables

Django autoescapes variables in templates. Using the safe filter or mark_safe on untrusted content disables that protection.

All Django MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as