3
1
Back

$doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); //doesn't get simpler than this // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { // not a jellybean, so $3/ea for sketchy NOS on amazon ** CA3080 High-Performance Operational Transconductance Amplifiers - not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of.

New Pull Request