In our footer we have an email that we are pulling from the database, in php blade it will look like this:
<a href="mailto:{{ $email }}">{{ $email }}</a>
I need to protect him from spambots.
I heard that in php it can be split and then assembled through a javascript, and it will look something like this:
<a href="" data-first="" deta-second="">{{ $email }}</a>
Where data is the parts of the email itself. But I didn't understand how to separate it and then collect it. Can someone tell me how to do this?
Or tell me similar features, how to protect against spambots.