wrap unwrap
var pTags = $( "p" );
$( "button" ).click(function() {
if ( pTags.parent().is( "div" ) ) {
pTags.unwrap();
} else {
pTags.wrap( "<div></div>" );
}
});
$(".EventList > .EventListItem:not(:first-child) a").contents().unwrap();
// use .contents() to unwrap the target element
$(".EventList > .EventListItem a[href*='?id=']").contents().unwrap();
// unwrap if just an imis listing