1.0.0 • Published 7 years ago

html-tag-parser v1.0.0

Weekly downloads
75
License
MIT
Repository
github
Last release
7 years ago

html-tag-parser

NPM version Build Status Dependency Status Coverage percentage

Installation

  npm install --save html-tag-parser

Usage

let htmlTagParser = require('html-tag-parser');

let html = '...'                            // html string

let tags = htmlTagParser(html, 'meta');     // return all 'meta' tags in the html string
tags = htmlTagParser(html, 'a', true);      // return all 'a' tags in the html string, the 
                                            // last parameter indicates the tag has a  
                                            // closing tag, as '</a>'

Getting To Know Yeoman

Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.

Created with

Yeoman and Generator-simple-package

License

MIT © Nghia Tran