3
1
Back

Far simpler than this foreach ($imgs as $img) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== False) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } //noop elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $article['content'] .= "
$orig_content
"; // Awkward Zombie elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] .= "

" . $entry->textContent . .

New Pull Request