I've used DOM before to parse websites in PHP.
I know I should never try to parse HTML using regex.
But... (I don't want to start a shitstorm, just an answer :P )
If i want to parse just 1 HTML element, e.g.
<a href="http://example.com/something?id=1212132131133&filter=true" rel="blebeleble" target="_blank">
And find the content of the href attribute, can I (and probably I need to if I can) use DOM to parse this string or do I need a complete webpage to be able to parse it using the DOM?