Edit in JSFiddle

$('unwrap').addEvent('click',function(){
    
    $('foo').unwrap();
    
});
<button id="unwrap">unwrap</button>
<div id="wrapper">
    <p id="foo">I am all wrapped up</p>
    <p>But not for long.</p>
</div>