Source Code:
(back to article)
<?php $str = "<h1>W3docs!</h1>"; $newstr = filter_var($str, FILTER_SANITIZE_STRING); echo $newstr; ?>
Result:
Report an issue