JSFiddle - React, Tailwind, and code Playground

HTML

<p>The weather is sure <span>sunny</span> today</p>

JavaScript

$(function(){
   
var newLbl=$("p").clone().find("span").remove().end().html();
    alert(newLbl);
    
});