<script type="text/javascript" src="http://yandex.st/jquery/1.9.1/jquery.min.js"></script>
<div class="xxx">asfasf</div>
<script type="text/javascript">
//Костыль
var ReturnOuterHTML = (function( b ){
return function(obj) {
b.innerHTML="";
b.appendChild(obj.get(0));
return b.innerHTML;
}
})( document.createElement( 'b' ) );
alert( ReturnOuterHTML($('.xxx').remove()));
</script>