Certified Information Systems Security Professional (CISSP) — Question 214

Which of the following methods is MOST effective in mitigating Cross-Site Scripting (XSS) vulnerabilities within HyperText Markup Language (HTML) websites?

Answer options

Correct answer: D

Explanation

The correct answer is D because not returning any HTML tags eliminates the potential for XSS attacks, as there would be no executable script to inject. The other options, while they might contribute to security, do not directly prevent XSS vulnerabilities in the same effective manner as option D.