<div>
<p>Hello</p>
<p>cruel</p>
<p>World</p>
</div>
{
const ex = $('p').unwrap()
}
{
const ex = Array.from(
new Set(
Array.from(document.querySelectorAll('p'), element => {
return element.parentElement
})
)
).forEach(element => {
element.replaceWith(element.children)
})
}