3
1
Back

. $e->getMessage(); } } //Sites that provide images and just need alt tags foreach($imgs as $img){ foreach ($imgs as $img) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $img; } $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users if.

New Pull Request