Filter FILTER_SANITIZE_STRING December 27, 2011 Pramod T P Leave a comment Strip tags and encode special characters. Example ====== <?php print_r(htmlentities(filter_var(“<font>PHPCodez<font>”, FILTER_SANITIZE_STRING))); ?> Output ===== PHPCodez