Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-helper-obfuscate

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-helper-obfuscate

Hexo helper plugin for obfuscating strings such as email addresses. Handy against web-crawlers.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

hexo-helper-obfuscate

Hexo helper plugin for obfuscating strings such as email addresses. Handy against web-crawlers.

Install

npm install hexo-helper-obfuscate --save

Usage

<a href="mailto:<%- obfuscate('jdoe@example.com')" %>>Email</a>

The helper will encode the characters of the string in html entities, randomly choosing between ascii and utf-8 representation. The result will look like this:

<a href="mailto:&#x006A;&#x0064;&#111;&#101;&#64;&#x0065;&#x0078;&#x0061;&#x006D;&#112;&#x006C;&#101;&#46;&#x0063;&#111;&#x006D;">Email</a>

Make sure to use <%- obfuscate() %> and not <%= obfuscate() %> to prevent EJS from escaping the generated string.

Keywords

FAQs

Package last updated on 30 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc