innoweb/silverstripe-email-obfuscator
最新稳定版本:4.0.0
Composer 安装命令:
composer require innoweb/silverstripe-email-obfuscator
包简介
Obfuscates all email addresses displayed on the site. Email addresses are revealed using Javascript.
README 文档
README
Overview
Obfuscates all email addresses displayed on the site. Email addresses are revealed using Javascript.
Thanks to Plato for some inspiration.
Requirements
- Silverstripe CMS 6
Installation
Install the module using composer:
composer require innoweb/silverstripe-email-obfuscator dev-master
and run dev/build.
Usage
All email addresses on a page get obfuscated by a middleware and then rewritten back to email links via Javascript.
If you need to skip obfuscation of certain links, you can add the skip-email-obfuscation class to their tag.
This is useful for e.g. Mastodon links that are falsly recognised as emails:
<a href="https://mastodon.social/@sminnee@mastodon.nz" class="skip-email-obfuscation">Sam Minnée on Mastodon</a>
License
BSD 3-Clause License, see License
统计信息
- 总下载量: 910
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-03-25