npm

parse-element

2.0.5 • Public • Published

parse-element

Build Status js-standard-style npm version Coverage Status

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>

Package Sidebar

Install

npm i parse-element

Weekly Downloads

2

Version

2.0.5

License

ISC

Last publish

Collaborators

  • vigour-io