Does email obfuscation work on link text? #6421
-
DescriptionI am using email obfuscation with javascript on my site, and am delighted that you have made this feature available. Right now I am using it like
but I would kind of like it to be
however, I am not sure whether the link text would also get obfuscated in the second example. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Glad you like it (Pandoc is the one doing the work and it is a very cool feature!). It obfuscates both the text and the link. Here is some example output: <p><script type="text/javascript">
<!--
h='posit.co';a='@';n='charles';e=n+a+h;
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'" clas'+'s="em' + 'ail">'+e+'<\/'+'a'+'>');
// -->
</script><noscript>charles at posit dot co</noscript></p> FWIW, it will also process a simpler version of the link if you'd like |
Beta Was this translation helpful? Give feedback.
Glad you like it (Pandoc is the one doing the work and it is a very cool feature!). It obfuscates both the text and the link. Here is some example output:
FWIW, it will also process a simpler version of the link if you'd like
<[email protected]>
and will make the mailto link and obfuscate it for you.