(containing project wonderful) with nothing $article['content'] = $img; } //Sites that provide images and just need alt tags if both exist Updated LICD, alter alt-textify to handle both title and alt tags elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // And get blog //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= " $orig_content"; // Awkward Zombie $article['content'] .= "" . $entry->textContent . ""; } .