Q. Which function converts special characters to HTML entities?

  • (A) htmlspecialchars()
  • (B) htmlentities()
  • (C) escape_html()
  • (D) convert_html()
πŸ’¬ Discuss
βœ… Correct Answer: (A) htmlspecialchars()
Explanation: htmlspecialchars() is used to prevent XSS by escaping HTML characters.
Explanation by: Mr. Dubey
htmlspecialchars() is used to prevent XSS by escaping HTML characters.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
112
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate