0.1.0 • Published 3 years ago
@lancercomet/html-parser v0.1.0
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
0.1.0
3 years ago