3
1
Back

"poorlydrawnlines.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { // Drugs and Wires drugs & wires, pilotside elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // Wondermark (alt tag already present foreach ($imgs as $img) { if ($title_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { if ($img->getAttribute('title')) { // Eat That Toast bog-standard example // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } elseif ($alt_text == $article['title'] || strpos($article['title'], $title_text) !== false){ // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users Added.

New Pull Request