You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

parse-element

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-element

Fast html parser for dom-elements - works with html-element

2.0.5
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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>

Keywords

html-element

FAQs

Package last updated on 10 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts