parse-element
v2.0.5
Published
Fast html parser for dom-elements - works with html-element
Downloads
12
Maintainers
Readme
parse-element
Fast html parser for dom-elements - works with html-element & in the browser (where it uses outerHTML)
- Around 30x faster then element.outerHTML from html-element
- Does not parse fields on elements set without setAttribute
const parseElement = require('parse-element')
const div = global.document.createElement('div')
div.appendchild(global.document.createTextNode('text!'))
console.log(parseElement(div)) //<div>text!</div>