This page redirects to an external site: https://developer.wordpress.org/reference/functions/sanitize_title_for_query/
Sanitizes a title with the 'query' context. Used for querying the database for a value from URL. Shorthand for sanitize_title($title, "", "query") (See sanitize_title()).
<?php sanitize_title_for_query( $title ); ?>
Since sanitize_title_for_query() calls sanitize_title(), the sanitize_title filter is applied with a context of 'query'.
Since: 1.0.0
sanitize_title_for_query() is located in /wp-includes/formatting.php.
sanitize_title_for_query() is in a class of functions that help you sanitize potentially unsafe data which allow you to pass an arbitrary variable and receive the clean version based on data type. Others include: