for(var i = 0; i < this.attributes.length; i++) {\r
var attr = this.attributes.item(i);\r
var value = attr.name === 'class' ? attr.value.replace(/\./g, '-') : attr.value;\r
for(var i = 0; i < this.attributes.length; i++) {\r
var attr = this.attributes.item(i);\r
var value = attr.name === 'class' ? attr.value.replace(/\./g, '-') : attr.value;\r
\r
transform(toBlock, 'div');\r
transform(toInline, 'span');\r
\r
toret.find(":not(iframe)").addBack().contents().filter(function() {\r
\r
transform(toBlock, 'div');\r
transform(toInline, 'span');\r
\r
toret.find(":not(iframe)").addBack().contents().filter(function() {\r
$(xml).find('metadata').children().each(function() {\r
var node = $(this);\r
toret[this.nodeName.split(':')[1].toLowerCase()] = node.text();\r
$(xml).find('metadata').children().each(function() {\r
var node = $(this);\r
toret[this.nodeName.split(':')[1].toLowerCase()] = node.text();\r
return toret;\r
},\r
getDocumentDescription: function(xml) {\r
return {\r
HTMLTree: this.getHTMLTree(xml),\r
metadata: this.getMetaData(xml)\r
return toret;\r
},\r
getDocumentDescription: function(xml) {\r
return {\r
HTMLTree: this.getHTMLTree(xml),\r
metadata: this.getMetaData(xml)\r