Add link to text if text equals
Searches for text within specified selector and replaces the HTML
by jelane20
HTML
<span class="BBFormTitle EventItemTitleDescription" id="PC2924_ctl00_Wizard1_dgEventItems1_lblEventDescription_2">Instructor: Julia Baugh
<br>
<br>Tuition: $259 members; $324 non-members
<br>Mondays, 6:30 - 9:30pm
</span>
JavaScript
$("span#PC2924_ctl00_Wizard1_dgEventItems1_lblEventDescription_2.BBFormTitle.EventItemTitleDescription:contains('Julia Baugh')").html(function(_, html) {
return html.replace(/(Julia Baugh)/g, '<a href="mailto:[email protected]">Julia Baugh</a>');
});