html-tag-parser
v1.0.0
Published
Given HTML file and a tag name, return all tag entries
Downloads
290
Readme
html-tag-parser
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