nerdexam
Zend

200-530 · Question #251

You want to allow your users to submit HTML code in a form, which will then be displayed as real code and not affect your site layout. Which function do you apply to the text, when displaying it?…

The correct answer is B. htmlentities() D. htmlspecialchars(). See the full explanation below for the reasoning.

Question

You want to allow your users to submit HTML code in a form, which will then be displayed as real code and not affect your site layout. Which function do you apply to the text, when displaying it? (Choose 2)

Options

  • Astrip_tags()
  • Bhtmlentities()
  • Chtmltidy()
  • Dhtmlspecialchars()
  • Eshowhtml()

How the community answered

(50 responses)
  • A
    2% (1)
  • B
    80% (40)
  • C
    12% (6)
  • E
    6% (3)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice