How would recommend doing it? If I was just trying to pull <a/> tag links out I feel like treating it like text and using regex would be way more efficient than a full on HTML parser like JSDom or something.
Obligatory: https://stackoverflow.com/questions/1732348/regex-match-open...