National_Instruments
200-500 · Question #144
Which function can help prevent cross-site scripting? (Choose 2)
The correct answer is B. htmlentities() C. htmlspecialchars(). See the full explanation below for the reasoning.
Question
Which function can help prevent cross-site scripting? (Choose 2)
Options
- Aaddslashes()
- Bhtmlentities()
- Chtmlspecialchars()
- Dstrip_tags()
- Equotemeta()
How the community answered
(24 responses)- A4% (1)
- B75% (18)
- D13% (3)
- E8% (2)
Community Discussion
No community discussion yet for this question.