This is my first video tutorial.
So this function is very usefull for cleaning post comments, contact forms and many other things.
The source code:
View Code PHP
<?php function clearHTML($str,$preg='<[^>]*>'){ return preg_replace('/'.$preg.'/','',$str); } echo clearHTML($_GET['text']); ?> |
1 Comment
great tutorial !! ^^