Email Address Obfuscation helps to prevent spam by hiding your email addresses in your angular application from email crawlers, bots and harvesters while remaining visible to your visitors.
https://stackblitz.com/edit/ngx-email-obfuscation
npm install ngx-email-obfuscation
import { NgxEmailObfuscationModule } from 'ngx-email-obfuscation';
@NgModule({
imports: [
...
NgxEmailObfuscationModule
]
})
Add emailObfuscation
directive to the parent element of the email address.
Contact us at <span emailObfuscation>[email protected]</span>
Using this directive, it will convert [email protected]
to moc.elpmaxe@troppus
` which is the reverse, it will use CSS to display the correct way.
On hovering over the email address it will be converted into an anchor tag with a mailto link.
Please report bugs and issues here.
MIT © Joe Jordan Brown