nerdexam
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)
  • A
    80% (16)
  • B
    5% (1)
  • C
    5% (1)
  • D
    10% (2)

Topics

#htmlentities#htmlspecialchars#XSS prevention#output escaping

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice