@lancercomet/html-parser
v0.1.0
Published
A html parser.
Downloads
2
Readme
HTML Parser
A html parser.
Quick Start
Parse HTML:
import { parse } from '@lancercomet/html-parser'
const result = `
<h1>John Smith</h1>
<ul>
<li>Age: 100</li>
<li>Address: The Mars</li>
</ul>
`
console.log(result) // [ASTNode, ASTNode]
Create HTML element:
import { createElement } from '@lancercomet/html-parser'
const element = createElement(new ASTNode())
console.log(element) // HTMLElement
License
Apache-2.0