To mitigate the risk of XSS attacks, developers should ________ any data that is output to the browser.

  • Escape
  • Encrypt
  • Validate
  • Sanitize
Developers should "Escape" any data that is output to the browser to protect against XSS (Cross-Site Scripting) attacks. Escaping ensures that user-generated content is displayed as plain text, preventing script execution.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *