Search

Categories:

loadHTML($contents); $images = $html->getElementsByTagName('img'); foreach ($images as $img){ $src = $img->getAttribute('src'); $img->setAttribute('src', $level."search/".$src); } $html->getElementsByTagName('h1')[0]->nodeValue = $title; $html->getElementsByTagName('p')[0]->nodeValue = "Today in Masonic History Emilio Famy Aguinaldo passes away in 1964."; echo preg_replace(array("/^\<\!DOCTYPE.*?.*?

/si", "!$!si"), "", $html->saveHTML()); } ?>