πŸ“Š PHP
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

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