Title: FILTER_SANITIZE_STRING
Last modified: July 3, 2026

---

# FILTER_SANITIZE_STRING

 *  [nutttaro](https://wordpress.org/support/users/nutttaro/)
 * (@nutttaro)
 * [5 days, 17 hours ago](https://wordpress.org/support/topic/filter_sanitize_string-3/)
 * `FILTER_SANITIZE_STRING` is a legacy PHP filter used in `filter_var()` or `filter_input()`
   to strip HTML tags and encode special characters. It was **deprecated in PHP 
   8.1**
 *     ```wp-block-code
       PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /var/www/html/wp-content/plugins/dealfront/admin/views/admin.php on line 44
       ```
   
 * Please fix it.
 * Thank you.

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffilter_sanitize_string-3%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/dealfront/assets/icon.svg?rev=3513954)
 * [Leadfeeder](https://wordpress.org/plugins/dealfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dealfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dealfront/)
 * [Active Topics](https://wordpress.org/support/plugin/dealfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dealfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dealfront/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)

 * 0 replies
 * 1 participant
 * Last reply from: [nutttaro](https://wordpress.org/support/users/nutttaro/)
 * Last activity: [5 days, 17 hours ago](https://wordpress.org/support/topic/filter_sanitize_string-3/)
 * Status: not resolved