I'd like to use any php function or whatever so that i can remove any HTML code and special characters and gives me only alpha-numeric output
$des = "Hello world)<b> (*&^%$#@! it's me: and; love you.<p>";
I want the output become Hello world it s me and love you
(just Aa-Zz-0-9-WhiteSpace)
I've tried strip_tags
but it removes only HTML codes
$clear = strip_tags($des);
echo $clear;
So is there any way to do it?
See Question&Answers more detail:os