difference between htmlentities() and htmlspecialchars()
htmlspecialchars only takes care of <, >, single quote ‘, double quote " and ampersand.it does not takes all occurrence of html characters.but htmlentities translates all occurrences of character sequences that have different meaning in HTML.