Obfuscates emails to make it harder for bots to recognize.
yarn add posthtml-obfuscate -D<!-- Before -->
<a href="mailto:sam@smith.com">
sam@smith.com
</a>
<!-- After -->
<a href="mailto:sam@smith.com">
sam@smith.com
</a>const posthtml = require('posthtml');
const phObfuscate= require('posthtml-obfuscate');
const options = {
includeMailto: false
};
posthtml([phObfuscate(options)])
.process(myHtml)
.then(result => {
console.log(result.html); // The output
});includeMailto: Boolean - Includes themailto:prefix in the obfuscation. (Default: false)