Hello i am wondering, if htmlentities and htmlspecialchars are the same thing.
If they are not the same thing, what does htmlentities do?
I have seen a code like this
$_POST['post'] = mysql_real_escape_string(htmlentities($_POST['post']));
so if htmlentities and htmlspecialchars are not the same thing how would i put htmlspecialchars in the code above? woluld it be like this?
$_POST['post'] = mysql_real_escape_string(htmlspecialchars($_POST['post']));
I will appreciate it if anyone can help me :P
Thanks
Mr Moon



Reply With Quote



Bookmarks