jQuery select html externo
var outer_element_html = $('jQuerySelector')[0].outerHTML ;
console.log(outer_element_html);
Matteoweb
var outer_element_html = $('jQuerySelector')[0].outerHTML ;
console.log(outer_element_html);