What are the potential drawbacks of using HTML entities to encrypt email addresses in PHP?

Using HTML entities to encrypt email addresses in PHP can make the email addresses harder to scrape by bots, but it is not a foolproof method as some bots are capable of decoding HTML entities. Additionally, encoding email addresses with HTML entities can make it harder for users to copy and paste the email address, potentially leading to user frustration.

$email = 'example@example.com';
$encoded_email = htmlentities($email);
echo '<a href="mailto:'.$encoded_email.'">'.$encoded_email.'</a>';