Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
CompTIA Security+ · CompTIA
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Input sanitization is used to clean and validate user input to prevent malicious code from executing. The example given in A is a cross-site scripting (XSS) attempt using a <script> tag, which can be blocked by sanitizing inputs.
A. <script>alert("Warning!");</script>"
huh, so thats why my browser showed "warning!" when opening this page's questions. hahahaha