JSFiddle - React, Tailwind, and code Playground
HTML
<h1 class="remove">
<script language="javascript" src="https://financeiro.hosctgator.com.br/feeds/productsinfo.php?pid=5&get=name"></script>
</h1>
<h2 class="remove">
<script language="javascript" src="https://financeiro.hostgator.com.br/feeds/productsinfo.php?pid=5&get=description"></script>
</h2>
JavaScript
function removeScripts(el) {
$(el).each(function () {
var i = this;
var value = ($(i).text()).replace(/\s/g, '');
if (value.length > 0) {
$('script', i).remove();
} else {
setTimeout(function () {
removeScripts(el);
}, 500);
}
});
}
removeScripts('.remove');