substance-xdom
v0.1.1
Published
Light-weight DOM implementation for Substance.
Downloads
2
Readme
substance-xdom
A light-weight DOM implementation build on top of htmlparser2.
TODO: as this not related to cheerio anymore we should rename the project.
Example:
import { parseHTML } from 'substance-cheerio'
let elements = parseHTML('<p>Hello <b>World</b>!</p>')
let p = elements[0]
let b = p.find('b')
console.log(b.getTextContent())