Codex tools: Log in
Contents |
Strips out all characters that are not allowable in an email.
<?php sanitize_email( $email ) ?>
Since: 1.5.0
sanitize_email() is located in wp-includes/formatting.php#L1860.
sanitize_email() 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: