PdfPrep.com

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

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

Exit mobile version