JSFiddle - React, Tailwind, and code Playground

by Steven Senkus

HTML

<a title="steve|asdjklfahlsdjkfh|steve|askjdfhuuejd|com" onMouseOver="this.title='';" class="gp_se">CHECK THE LINK</a>

JavaScript

// safe email function
	// converst a nice srting into a valid email.
	var atkey = '|asdjklfahlsdjkfh|',
	    dotkey = '|askjdfhuuejd|';
	$('a.gp_se').each(function () {
	    var thishref = $(this).attr('title').replace(atkey, '@').replace(dotkey, '.');
	    var thistext = ($(this).html().length > 0) ? $(this).html() : thishref;
	    $(this).attr('href', 'mailto:' + thishref).html(thistext);
	});