3
1
Back

Far simpler than this foreach($imgs as $img){ $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $img = $matches[1]; } } $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->textContent . "

"; } } module knurled_finish(ord, ird.

New Pull Request