No Spam

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-08 09:43:05

软件介绍

Description

This jQuery plugin turns an obfuscated e-mail address into a human-readable one. It's lightweight and accepts multiple filtering levels for additional security. No Spam works on mailto links and other HTML elements, automatically detecting which you're applying it to.

Filter Levels

No Spam has two filter levels that determine how your e-mail address should be formatted when it's passed in: low and normal (default).

normal

normal looks for a reversed email address with the at sign (@) to be replaced with two forward slashes (//) and periods (.) to be replaced with single slashes (/). Reversing it provides an extra level of protection. Example: email@example.com should be passed as

moc/elpmaxe//liame

low

low looks for an email address with the at sign (@) to be replaced with two forward slashes (//) and periods (.) to be replaced with single slashes (/). The only difference between low and normal is that low does not require the e-mail to be reversed. This method is still effective and is also more natural to read and type, but still tricky for a bot to untangle. Example: email@example.com should be passed as

email//example/com

Usage

Default (no options)

$('a.email').nospam();

<a target="_blank" rel="nofollow" href="#" rel="moc/elpmaxe//liame" class="email">Email Me!</a> would become Email Me!

Replacing text

$('a.email').nospam({ replaceText: true });

<a target="_blank" rel="nofollow" href="#" rel="moc/elpmaxe//liame" class="email">Email Me!</a> would become email@example.com

Filter level low

$('a.email').nospam({ filterLevel: 'low' });

<a target="_blank" rel="nofollow" href="#" rel="email//example/com" class="email">Email Me!</a> would become email@example.com

Non-link element

$('span.email').nospam(); // always replaces text when not a link

<span>moc/elpmaxe//liame</span> would become email@example.com

Multiple dots (.), Filter Level low

$('span.email').nospam({ filterLevel: 'low' });

<span>firstname/lastname//example/co/uk</span> would become firstname.lastname@example.co.uk

Integration

I created a PHP companion function to No Spam that allows you to wrap an e-mail address in a PHP function that will automatically format it for use with No Spam so you don't have to manually change anything! More details here http://www.leftrightdesigns.com/library/jquery/nospam/php-integration.ph...

本文地址:https://codercto.com/soft/d/22915.html

Python编程实战

Python编程实战

[美] Mark Summerfield / 爱飞翔 / 机械工业出版社 / 2014-8 / 69.00元

《python编程实战:运用设计模式、并发和程序库创建高质量程序》由python开发者社区知名技术专家mark summerfield亲笔撰写,全球资深python专家doug hellmann作序鼎力推荐,是python领域最有影响力的著作之一。书中通过大量实用的范例代码和三个完整的案例研究,全面而系统地讲解了如何运用设计模式来规划代码结构,如何通过并发与cython等技术提升代码执行速度,以及......一起来看看 《Python编程实战》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具