Which function do you apply to the text, when displaying it?

Posted by: Pdfprep Category: 200-710 Tags: , ,

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 page layout.

Which function do you apply to the text, when displaying it? (Choose 2)
A . strip_tags()
B . htmlentities()
C . htmltidy()
D . htmlspecialchars()
E . showhtml()

Answer: B, D

Leave a Reply

Your email address will not be published.