<?php $html = '<p><a href="blahblah">blahblah</a></p>'; $doc = new DOMDocument(); libxml_use_internal_errors(true); $doc->loadHTML($html); libxml_clear_errors(); $test = $doc->querySelector('a'); echo $test->getAttribute('href');
You have javascript disabled. You will not be able to edit any code.