I am looking for some HTML Parser in PHP which can help me extract href values from the html source.
I looked at phpQuery and its best but it is to be too overkill for my needs and cosume a lot of CPU doing the extra stuff that I dont need.
I also checked
$dom = new DomDocument();
$dom->loadHTML($html);
but it has problems parsing HTML5 tags.
Is there any better library/class or a way to do it?
Well, you can use regular expressions to extract the data: