Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

html-tags-parser

abderrhmane13ISC1.0.0

a simple html parser.

extract, code, from html, mixed, remove, separate, stri, string, strip, tags, templating, text, xhtml

readme

SIMPLE HTML PARSER

a simple html parser.

Usage :

const htmlParser = require('html-tags-parser')
const elements = htmlParser()

returns a array of elements objects

interface HTMLElement {
    name : string,
    innerHtml?: string,
    outerHtml: string,
    properties: object[],
    children?: HTMLElement[],
}