Home » Interview » Technology

What’s the difference between htmlentities() and htmlspecialchars()?

Correct Answer: Htmlentities() converts all applicable characters to HTML entities While htmlspecialcharacter()converts special characters to HTML entities This means htmlentities( ) will check for non English language characters, such as French accents, the German umlaut, etc

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion