New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

htmldom2

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmldom2

Parse html on top of xmldom and htmlparser2

latest
Source
npmnpm
Version
0.0.8
Version published
Weekly downloads
80
321.05%
Maintainers
1
Weekly downloads
 
Created
Source

htmldom2

Parsing html on top of xmldom and htmlparser2

Usage

Parse html from a string

const source = `
<html>
  <head>
    <title>Hello World</title>
  <body>
    <h1>Hello World</h1>
  </body>
</html>
`;
constDOMParser } = require('htmldom2');
const document = new DOMParser().parseFromString(source, 'text/html');

FAQs

Package last updated on 31 Aug 2022

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