1.

What's The Difference Between Htmlentities() And Htmlspecialchars()?

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.

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



Discussion

No Comment Found