A

Admin • 832.27K Points
Coach

Q. Which function converts special characters to HTML entities?

  • (A) htmlspecialchars()
  • (B) htmlentities()
  • (C) escape_html()
  • (D) convert_html()
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

htmlspecialchars() is used to prevent XSS by escaping HTML characters.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.