Q. Which PHP function converts special characters to HTML entities including quotes?

  • (A) htmlspecialchars()
  • (B) htmlentities()
  • (C) encode_html()
  • (D) specialchars()
πŸ’¬ Discuss
βœ… Correct Answer: (B) htmlentities()
Explanation: htmlentities() converts all applicable characters.
Explanation by: Mr. Dubey
htmlentities() converts all applicable characters.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
37
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate