JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

var a = $('#target span').text();
var b = a.split('$');
alert(b[1]);