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 Joseph Smith is born in 1805."; echo preg_replace(array("/^\<\!DOCTYPE.*?.*?

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