elementar
Elementar is a content-oriented HTML simplifier.
Usage
; const elementar = ;console // <p>Here is the answer!</p>console // <p><text>Here is the answer!</text></p>console // Here is the answer!
API
fromHtml(html: string, options?: ElementarOptions): Elementar
See options.
Elementar
.html(): string
Returns the processed html.
.xml(): string
Returns the processed html as xml.
.text(): string
Returns the text from html.