html-tag-parser

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i html-tag-parser

Weekly Downloads

86

Version

1.0.0

License

MIT

Last publish

Collaborators

  • nghiattran