I have the following html code :

`<i>https://www.example.com/01.png</i>`

I want to replace the i tag with another tag and leave the same content
eg.

`<a><img src=" + my url + "></a>`

I did try, but it didn't work

`var a = $ (this)، b = a.text (). trim ()، c = a.html ()؛ $ ("i") .replaceWith ('<a>' + c + "</a>")؛`