JSFiddle - React, Tailwind, and code Playground

HTML

<table><tr><td><span column="17" style="cursor:pointer"></span>BMW</td></tr></table>

JavaScript

$(function(){
    
$('table').find('td')
    .contents()
    .filter(function() {
      return this.nodeType === 3;
    }).replaceWith("hi");
});