Reputation: 2223
How I can block HTML codes in my form? So, when someone enter a HTML code, it's not usable...
It's for a comments system...
Upvotes: 0
Views: 180
Reputation: 1687
You would want to use HTMLEntities. It will escape all special entities like <>.
Upvotes: 1
Reputation: 361
http://www.php.net/manual/en/function.htmlspecialchars.php
htmlspecialchars()
Upvotes: 5