extract-html-id
Extract all ids from html
Usage
var extract = var assert = var html = ` <div id="foo"> <p id="bar">hello planet</p> </div>`var expected = 'foo' 'bar'assert
API
ids = extract(html)
Get an array of ids for the given string. Uses a regex so safe to run on non-html strings too. Returns the first ID per DOM element. Returns an empty array if no matches are found.