Using outerHTML to include HTML tag

main
ElbertF 13 years ago
parent cf448d6920
commit 4fcf82b461

@ -7,7 +7,7 @@
if ( content.document.contentType != 'text/html' ) return; if ( content.document.contentType != 'text/html' ) return;
// HTML // HTML
var html = content.document.documentElement.innerHTML var html = content.document.documentElement.outerHTML
if ( html.length > 50000 ) html = html.substring(0, 25000) + html.substring(html.length - 25000, html.length); if ( html.length > 50000 ) html = html.substring(0, 25000) + html.substring(html.length - 25000, html.length);