Result Size: 625 x 571
x
 
<!DOCTYPE html>
<html>
<body>
<?php
// Variable to check
$str = "<h1>Hello WorldÆØÅ!</h1>";
// Remove HTML tags and all characters with ASCII value > 127
$newstr = filter_var($str, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH);
echo $newstr;
?>
</body>
<!-- Mirrored from www.w3schools.com/php7/phptryit.asp?filename=tryphp_func_sanitize_string2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:40:45 GMT -->
</html>
×

Report a Problem: