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)- A2% (1)
- B80% (40)
- C12% (6)
- E6% (3)
Community Discussion
No community discussion yet for this question.