I have an HTML page containing alot of meta tags and I want to parse them to find certain ones. Here is the code I am using, but it s not picking up any of the tags.
$dom = new DOMDocument();
$dom->preserveWhiteSpace = false;
$dom->loadHtml($contents);
$metaChildren = $dom->getElementsByTagName( meta );
var_dump($metaChildren);
Here is a snippet of the HTML I am using (I replaced the arrow with a brace):
[meta name="GZPlatform" content=" pc"]
[meta name="GZFeatured" content=" Gone Gold"]
[meta name="GZHeadline" content=" pc"]
[meta name="GZP_ID" content=" pc 21153"]
Any Ideas?