posthtml-obfuscate
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "posthtml-obfuscate", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "PostHTML plugin that'll obfuscate emails etc...", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,2 +0,2 @@ | ||
# PostHTML | ||
# PostHTML Obfuscate | ||
@@ -12,3 +12,16 @@ [![NPM version](https://img.shields.io/npm/v/posthtml-obfuscate.svg?style=flat-square)](https://www.npmjs.com/package/posthtml-obfuscate) | ||
## Usage | ||
### Output | ||
```html | ||
<!-- Before --> | ||
<a href="mailto:sam@smith.com"> | ||
sam@smith.com | ||
</a> | ||
<!-- After --> | ||
<a href="mailto:sam@smith.com"> | ||
sam@smith.com | ||
</a> | ||
``` | ||
### Usage | ||
```js | ||
@@ -29,17 +42,3 @@ const posthtml = require('posthtml'); | ||
### Output | ||
```html | ||
<!-- Before --> | ||
<a href="mailto:sam@smith.com"> | ||
sam@smith.com | ||
</a> | ||
<!-- After --> | ||
<a href="mailto:sam@smith.com"> | ||
sam@smith.com | ||
</a> | ||
``` | ||
### Options | ||
- includeMailto: Boolean - Includes the `mailto:` prefix in the obfuscation. (Default: false) | ||
- `includeMailto`: Boolean - Includes the `mailto:` prefix in the obfuscation. (Default: false) |
3778
43