3
1
Back

Tags if both exist Updated LICD, alter alt-textify to handle both title and alt tags textified. //Sites that provide images and just need alt tags foreach($imgs as $img){ // Questionable Content (cleanup) elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ Various updates, additions elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] .= "

" . $entry->textContent . "

New Pull Request