Menu
Folks,
Why isn’t this filtering anything ? Nothing getting stripped!
[code]
<?php
$input = ‘<a href=”sempervivumwatsup-doc/doc.htm”>Watsup Doc ?’;
function test_input($data)
{
trim($data);
stripslashes($data);
strip_tags($data);
htmlspecialchars($data);
return $data;
}
echo test_input($input);
die;
?>
Why in tutorials they add the:
**stripslashes($data);
but forget the:
**striptags($data);