Codex tools: Log in
Sanitize a mime type.
sanitize_mime_type() has done its work, it passes the sanitized MIME type through the sanitize_mime_type filter.
<?php sanitize_mime_type( $mime_type ); ?>
apply_filters( 'sanitize_mime_type', $sanitized_mime_type, $raw_mime_type )
sanitize_mime_type() is located in
sanitize_mime_type() 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: