3
1
Back

'//theoatmeal.com/comics/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { if ($img->getAttribute('title')) { $article['content'] = $doc->saveXML(); // Questionable Content (cleanup) // Questionable Content (cleanup) $article['content'] .= "
" . $msg . ""; .

New Pull Request