JSFiddle - React, Tailwind, and code Playground
by Mark Coleman
HTML
<a href="link.html">Some text <img src="http://dummyimage.com/10x10/000/fff.png&text=test" alt="test" /></a>
JavaScript
$("a").html($("a").html().replace("Some text", "Other text"));