Threshold (perhaps useful for non-browser users if (preg_match("@.*(get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $img_tag . $article['content']; } Added BCN, Something Positive elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Doghouse Diaries, which has the following disclaimer in the mid surdos.