06-13-2010, 04:05 AM
Also a very handy way of sanitizing is using the strip_tags() function from PHP. This will strip all tags and an optional parameter to include tags not to be stripped.
http://www.php.net/strip_tags
This is very useful if you do not want any <script> etc. tags in your user input.
http://www.php.net/strip_tags
This is very useful if you do not want any <script> etc. tags in your user input.