nerdexam
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)
  • A
    4% (1)
  • B
    75% (18)
  • D
    13% (3)
  • E
    8% (2)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice