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
- Host: GitHub
- URL: https://github.com/said10/parserhtml
- Owner: said10
- License: apache-2.0
- Created: 2018-07-13T14:48:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T16:12:00.000Z (almost 8 years ago)
- Last Synced: 2025-12-19T20:56:13.208Z (6 months ago)
- Topics: html-parser, parser
- Language: JavaScript
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
});
```