I’m using the emo extra to obfuscate e-mail addresses on my website but it looks like it’s replacing all existing classes on the a-tag with emo_address. Is this intented behaviour?
Well, I don’t want those emails to be exluded, as they are email addresses displayed in the front-end. But I would like the links to retain the classes I gave them.
// Decrypt all email addresses
function emo_replace() {
for (var i = 1; i < emo_addresses.length; i++) {
var id = '_emoaddrId' + i;
var elem = document.getElementById(id);
if (elem) {
if (elem.firstChild) {
// Save old classes here?
elem.removeChild(elem.firstChild);
}
elem.innerHTML = decrypt_string(i);
// Add old classes here?
}
}
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.