src/index.js
function swapTags(email, text) {
  document.querySelectorAll('.obfuscemail').forEach(function(a) {
    var newA = document.createElement('a');
    newA.href = 'mailto:' + email;
    newA.innerHTML = text;
    a.parentNode.replaceChild(newA, a);
  });
}
function swapTags(email, text) {
  document.querySelectorAll('.obfuscemail').forEach(function(a) {
    var newA = document.createElement('a');
    newA.href = 'mailto:' + email;
    newA.innerHTML = text;
    a.parentNode.replaceChild(newA, a);
  });
}
Swaps all tags with a class of "obfuscemail" with an <a> mailto link
@param  {String} email
@param  {String} text