Beginner
PHP
Q30 / 100
What does htmlspecialchars() do?
Correct! Well done.
Incorrect.
The correct answer is B) Converts special characters to HTML entities to prevent XSS
B
Correct Answer
Converts special characters to HTML entities to prevent XSS
Explanation
htmlspecialchars() converts <, >, &, ", ' to HTML entities, preventing cross-site scripting (XSS) attacks.
Progress
30/100