项目作者: joejordanbrown

项目描述 :
Angular Email Obfuscation
高级语言: TypeScript
项目地址: git://github.com/joejordanbrown/ngx-email-obfuscation.git
创建时间: 2020-02-28T22:23:00Z
项目社区:https://github.com/joejordanbrown/ngx-email-obfuscation

开源协议:MIT License

下载


Angular Email Obfuscation

npm GitHub license GitHub issues

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.

Demo

https://stackblitz.com/edit/ngx-email-obfuscation

Installation

Install the npm package

npm install ngx-email-obfuscation

Import NgxEmailObfuscationModule
  1. import { NgxEmailObfuscationModule } from 'ngx-email-obfuscation';
  2. @NgModule({
  3. imports: [
  4. ...
  5. NgxEmailObfuscationModule
  6. ]
  7. })

Usage

Add emailObfuscation directive to the parent element of the email address.

  1. Contact us at <span emailObfuscation>support@example.com</span>

Obfuscation

Using this directive, it will convert support@example.com 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.

Issues

Please report bugs and issues here.

License

MIT © Joe Jordan Brown