nerdexam
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)
  • A
    9% (3)
  • B
    3% (1)
  • C
    71% (24)
  • D
    15% (5)
  • E
    3% (1)

Topics

#htmlentities#ENT_QUOTES#HTML entities#single quotes

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice