We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e247b1 commit 48ba07dCopy full SHA for 48ba07d
src/templates/page-mailto-generator.php
@@ -45,9 +45,12 @@
45
addressOutput = addressOutput.slice(0, -1);
46
47
output.value = `\<script\>
48
-let UnCryptMailto = (s) => s.split(';').map((c) => String.fromCharCode(parseInt(c))).join('');
49
-document.write('<a href="mailto:' + UnCryptMailto('${addressOutput}') + '">' + UnCryptMailto('${addressOutput}') + '</a>')
50
-\<\/script\>`;
+(function() {
+ let UnCryptMailto = (s) => s.split(';').map((c) => String.fromCharCode(parseInt(c))).join('');
+ document.write('<a href="mailto:' + UnCryptMailto('${addressOutput}') + '">' + UnCryptMailto('${addressOutput}') + '</a>')
51
+ \<\/script\>
52
+})();`;
53
+
54
});
55
</script>
56
0 commit comments