Home » Interview » Technology

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

Correct Answer: htmlspecialchars only takes care of , single quote ‘, double quote " and ampersand htmlentities translates all occurrences of character sequences that have different meaning in HTML

← Previous Question Next Question→

Discussion & Comments

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