JSFiddle - React, Tailwind, and code Playground
HTML
<p>this is the phrase to replace (30200-1298)</p>
<p>
lorum ipsum
</p>
JavaScript
var thePhrase = "(30200-1298)";
var toReplace = "";
$("p").each(function(){
var $this = $(this);
if( $this.html() == thePhrase) {
$this.html( toReplace );
}
});