JSFiddle - React, Tailwind, and code Playground

by kasdega

HTML

<b class="xyzxterms" style="cursor: default; ">bryant keil bio</b>

CSS

h1 {
    color: red;
}

JavaScript

$(document).ready(function() {
    var me = $("b");
    var newMe = $("<h1>");
    for(var i=0; i<me[0].attributes.length; i++) {
        var myAttr = me[0].attributes[i].nodeName;
        var myAttrVal = me[0].attributes[i].nodeValue;
        newMe.attr(myAttr, myAttrVal);
    }
    newMe.html(me.html());
    me.replaceWith(newMe);
});