JSFiddle - React, Tailwind, and code Playground
HTML
<div id="mydiv">
<font size="3">
<font color="green">
<font face="helvetica">hello world</font>
</font>
</font>
</div>
JavaScript
$fonts = $("font","#mydiv");
console.log($fonts.text());
$fonts.text(function(){
return "New text";
});
console.log($fonts.text());