Why and when to use htmlentities and htmlspecialchars
Posted on 2014-08-19
I know what htmlentites and htmlspecialchars do as in converting <, >, &, etc... into <, > etc..
I wish to know when to use these functions and shall I store conveted values such as <, > etc. into database?