JSFiddle - React, Tailwind, and code Playground

HTML

<p id="target">
  <span><sup>$</sup>50</span>
</p>

JavaScript

var clone = $("#target").clone();
clone.find("sup").remove();
var text = clone.text();
alert(text);