0.0.8 • Published 2 years ago

htmldom2 v0.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
2 years ago

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>
`;
const { DOMParser } = require('htmldom2');
const document = new DOMParser().parseFromString(source, 'text/html');
0.0.8

2 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago