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 = "He
You can do it in one single line :) specially useful for GET or POST requests
$clear = preg_replace('/[^A-Za-z0-9\-]/', '', urldecode($_GET['id']));