An open API service indexing awesome lists of open source software.

https://github.com/said10/parserhtml

JS library to convert HTML Code to JS Object
https://github.com/said10/parserhtml

html-parser parser

Last synced: 5 months ago
JSON representation

JS library to convert HTML Code to JS Object

Awesome Lists containing this project

README

          

# parserHTML
JS library to convert HTML Code to JS Object

## Installation
Installation from npm
```js
npm i parser-html
```

For Browser Use
```html

```

## Init Parser Object
for Node JS
```js
var parserHtml = require("parser-html");
```
for Browser
```js
var parserHtml = parserHTML;
```

```js
var template = `



Title of Page




`;

parserHtml.parse(template, function(data) {
console.log(data);
// return the Tree Object
});
```