JSFiddle - React, Tailwind, and code Playground

HTML

<p>This is a <fund id="12345">Test Fund</fund>. More text.</p>

JavaScript

var html = $("p").html();
alert($("<div>" + html + "</div>").find("fund").text());