Which of the following is the primary goal of input sanitization?

  • Enhancing user experience.
  • Ensuring data accuracy.
  • Preventing cross-site scripting (XSS) attacks.
  • Optimizing database performance.
The primary goal of input sanitization is to prevent cross-site scripting (XSS) attacks. It involves removing or encoding potentially dangerous characters from user input to ensure that it cannot be executed as script on a web page, thus enhancing web security.
Add your answer
Loading...

Leave a comment

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