· 9 years ago · Apr 24, 2017, 11:10 AM
1test@gmail.com
2
3****@gmail.com
4
5<div class="element">
6 <span>test@gmail.com</span>
7</div>
8
9
10$('.element span').each(function() {
11 console.log($(this).text());
12 var text = $(this).text().replace('@', '*');
13 $(this).text(text);
14});