3
1
Back

Function alt_textify($article, $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Questionable Content (cleanup elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { // Joy of Tech elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') .

New Pull Request