You can use function:
sanitize_title( string $title, string $fallback_title="", string $context="save" );
More info: https://developer.wordpress.org/reference/functions/sanitize_title/
You can use function:
sanitize_title( string $title, string $fallback_title="", string $context="save" );
More info: https://developer.wordpress.org/reference/functions/sanitize_title/