Skip to content

coolov/universal-dom-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

universal-dom-parser

Usage

Make sure that whatever build system you are using (Webpack etc) is honoring the browser field in package.json. Then import the library and use it the same way you would use the browser native DOMParser.

let DOMParser = require('universal-dom-parser');
let parser = new DOMParser();
let doc = parser.parseFromString(`<html><body>Precious website</body></html>`, 'text/html');

Implementation

About

DOMParser for node and the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages