pretty print html during export if possible

pull/1/head
ansuz 9 years ago
parent 16b4b3c3f3
commit 6cb2f72aa6

@ -393,8 +393,9 @@ define([
Dom = Dom || (new DOMParser()).parseFromString(data,"text/html"); Dom = Dom || (new DOMParser()).parseFromString(data,"text/html");
return ('<!DOCTYPE html>\n' + return ('<!DOCTYPE html>\n' +
'<html>\n' + '<html>\n' +
Dom.head.outerHTML + '\n' + (typeof(Hyperjson.toString) === 'function'?
Dom.body.outerHTML); Hyperjson.toString(Hyperjson.fromDOM(Dom.body)):
Dom.head.outerHTML) + '\n');
}; };
var domFromHTML = function (html) { var domFromHTML = function (html) {

Loading…
Cancel
Save