JSFiddle - React, Tailwind, and code Playground

by wirey00

HTML

<a href="">Test</a>

JavaScript

$('a').contents().unwrap().wrap('<test href="">')