Search All HTML Source

Is there an easy way to perform a search on all the HTML source of a website? I’m attempting to search the html source to locate any hidden comments or meta tags pertaining to developers names or out-of-date copyrights. Searching through the PHP source would be very difficult because there are so many false-positives.

I’m not sure that I quite understand what you’re trying to say, but perhaps you’re looking for regular expressions?

preg_match_all('/<!--(.+)-->/isU', $html, $comments); // matches any comments
preg_match_all('!<meta(.*)[ /]?>!isU', $html, $meta); // matches any meta tags