JSFiddle - React, Tailwind, and code Playground
HTML
<span>
<h2>Joe Bloggs</h2>
Executive Director
</span>
JavaScript
var copy = $(document).find('span').clone();
$(copy).find('h2').remove();
alert($(copy).text());
<span>
<h2>Joe Bloggs</h2>
Executive Director
</span>
var copy = $(document).find('span').clone();
$(copy).find('h2').remove();
alert($(copy).text());