Wednesday, September 10, 2008

What is the difference between htmlentities() and htmlspecialchars()?

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

No comments: