×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: user386d9
Added: Apr 11, 2017 1:53 PM
Modified: Apr 11, 2017 1:56 PM
Views: 9
Tags: no tags
  1. function cloakEmails() {
  2.     $('.emlclk:contains("##kukac##")').each(function () {
  3.         var text = $(this).text();
  4.         var newtext = text.replace('##kukac##', '@');
  5.         $(this).html('<a href="mailto: ' + newtext + '">' + newtext + '</a>');
  6.     });
  7. }