JSFiddle - React, Tailwind, and code Playground
by chridam
HTML
<h3 class="page-title">
First Path <small>Sub Path</small>
</h3>
JavaScript
$("h3").contents().filter(function(){ return this.nodeType == 3; }).first().replaceWith("Changed Path");