$a = $_REQUEST["a"]; $b = htmlentities($a); $c = html_entity_decode($b); $d = htmlspecialchars($c); $e = nl2br($d);