Source Code:
(back to article)
<?php $string = "<strong>This is a bold string</strong>"; $filtered_string = filter_var($string, FILTER_SANITIZE_STRING); echo $filtered_string; ?>
Result:
Report an issue