Zend
200-710 · Question #148
Which of the following functions are used to escape data within the context of HTML? (Choose 2)
The correct answer is A. htmlentities() E. htmlspecialchars(). See the full explanation below for the reasoning.
Security
Question
Which of the following functions are used to escape data within the context of HTML? (Choose 2)
Options
- Ahtmlentities()
- Baddslashes()
- Cstripslashes()
- Dstrip_tags()
- Ehtmlspecialchars()
How the community answered
(20 responses)- A80% (16)
- B5% (1)
- C5% (1)
- D10% (2)
Topics
#htmlentities#htmlspecialchars#XSS prevention#output escaping
Community Discussion
No community discussion yet for this question.