<html>
<body>
$str = "<h1>Hello World!</h1>";
$newstr = filter_var($str, FILTER_SANITIZE_STRING);
echo $newstr;
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_filter2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:29:33 GMT -->
</html>