Zend
200-710 · Question #155
Which constant must be passed as the second argument to htmlentities() to convert single quotes (') to HTML entities?
The correct answer is C. ENT_QUOTES. See the full explanation below for the reasoning.
Security
Question
Which constant must be passed as the second argument to htmlentities() to convert single quotes (') to HTML entities?
Options
- ATRUE
- BFALSE
- CENT_QUOTES
- DENT_NOQUOTES
- EENT_COMPAT
How the community answered
(34 responses)- A9% (3)
- B3% (1)
- C71% (24)
- D15% (5)
- E3% (1)
Topics
#htmlentities#ENT_QUOTES#HTML entities#single quotes
Community Discussion
No community discussion yet for this question.