let tt = document.getElementById("1234"); let frag = document.createDocumentFragment(); frag.innerHTML = tt.innerHTML; tt.replaceWith(frag);