how to write a code to protect the email IDs displayed on a page through PHP to protect from spam bots
<p>I am displaying the email addresses stored in the database on a page using PHP.
The email address on a page is displayed as below:</p>

<p>Email: test@example.com</p>

<p>Now the email address shown on a page should use JS spam protection to hide it from spam bots.</p>
