Q:
What’s the difference between htmlentities() and htmlspecialchars()?
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.
View answer
Workspace
Report Error
Discuss