(function(){ //TODO vanilla var mail = $('span.mailto').html(); mail = mail.replace('no-thx-',''); $('span.mailto').html(''+ mail +''); })();