Why use htmlspecialchars () when you have htmlentities ()?

Possible duplicate:
htmlentities vs htmlspecialchars

I know the difference between these two functions. I want to know what would be the possible reasons for using htmlspecialchars() when you have a more complete option, i.e. htmlentities() ?

+7
html php
source share

No one has answered this question yet.

See similar questions:

513
htmlentities () vs htmlspecialchars ()

or similar:

7205
Why does HTML consider chucknorris to be a color?
4270
Link. What does this symbol mean in PHP?
2687
Is it possible to apply CSS to half a character?
1906
How does PHP foreach work?
1738
How to create an HTML button that acts as a link?
1481
<button> vs. <input type = "button" / ">. What to use?
1198
The pure JavaScript equivalent jQuery $ .ready () - how to call a function when the page / DOM is ready for it
923
What is the difference between public, private and protected?
660
Difference between id and name attributes in HTML
513
htmlentities () vs htmlspecialchars ()

All Articles