JSFiddle - React, Tailwind, and code Playground
HTML
<b class="xyzxterms" style="cursor: default; ">bryant keil bio</b>
JavaScript
(function($) {
$.fn.changeElementType = function(newType) {
var attrs = {};
$.each(this[0].attributes, function(idx, attr) {
attrs[attr.nodeName] = attr.nodeValue;
});
this.replaceWith(function() {
return $("<" + newType + "/>", attrs).append($(this).contents());
});
}
})(jQuery);
$("b").changeElementType("h1");