html-to-object-parser
v1.0.5
Published
A simple library that converts an HTML string into a structured JavaScript object. Useful for parsing and manipulating HTML in a structured format.
Downloads
29
Readme
HTML to Object Parser
A simple library that converts an HTML string into a structured JavaScript object. Useful for parsing and manipulating HTML in a structured format.
Features
- Converts HTML elements to JavaScript objects with tags, styles, text content, and children.
- Handles inline styles and converts them to JavaScript objects.
- Supports class and ID attributes.
- Designed to work both in Node.js and the browser.
Installation
You can install the package using npm:
npm install html-to-object-parser