arshadkazmi42 / search-a-tags

Search <a> tags of HTML from HTML content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

search-a-tags

Build NPM Version NPM Downloads Github Repo Size LICENSE Contributors Commit

Search <a> tags of HTML from HTML content

Install

npm install search-a-tags

Usage

const SearchTags = require('search-a-tags');

const HTML = '<img src="https://github.com/arshadkazmi42"><a></a><b>Test</b><a href="https://google.com" />Click Here</a><p>This is a paragraph</p><a target="_" href="arshadkazmi42"><img src="test.png" /><img target="_" src="/images/1.png">';

const links = SearchTags(HTML);
console.log(links);
// [
//   'https://google.com',
//   'arshadkazmi42'
// ]

Contributing

Interested in contributing to this project? You can log any issues or suggestion related to this library here

Read our contributing guide on getting started with contributing to the codebase

About

Search <a> tags of HTML from HTML content

License:MIT License


Languages

Language:JavaScript 100.0%