JSFiddle - React, Tailwind, and code Playground
by Elak
HTML
<a href="#" class="link"><span>Some link lol</span></a>
JavaScript
// remove the link
$(".link").contents().unwrap().wrap("<span class='oldLink'></span>")
// add the link again
//$(".oldLink").wrap("<a href='#'></a>");