<?php $dom = new DOMDocument(); $dom->loadHTML("<html></html>"); $nodes = $dom->getElementsByTagName("foo"); var_dump((bool)$nodes); if ($nodes) { echo "yes"; } else { echo "no"; }
You have javascript disabled. You will not be able to edit any code.