JSFiddle - React, Tailwind, and code Playground
by joycse06
HTML
<p>
<img src="http://placekitten.com/200/200" />
</p>
JavaScript
console.log('Parent Before: ',$('img').parent());
$('p > img').unwrap('<p />');
console.log('Parent After: ',$('img').parent());