JSFiddle - React, Tailwind, and code Playground
HTML
<div id='append'></div>
<button id='clickme'>Click</button>
JavaScript
$(document).ready(function(){
var data="<table><td class='format-this'>1000</td><td class='format-this'>1000</td></table>";
$('#clickme').click(function(){
var MyDataToFormat = $("<div></div>").html(data);
$(MyDataToFormat).find('.format-this').each(function() {
$(this).html("crap");
});
$('#append').html($(MyDataToFormat).html())
});
});