JSFiddle - React, Tailwind, and code Playground

HTML

<table>
    <tr>
        <td>
            <a>anchor</a>
            [ some text ]
        </td>
    </tr>
</table>

JavaScript

var anchor = $('td').find('a').clone();
$('td').text('{ some other text }').prepend(anchor);