3
1
Back

{ ef3a1f8c03 Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users if (preg_match("@.*(mangle_article($article); } catch (Exception $e) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $doc = new DOMDocument(); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; // Cyanide & Happiness elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches if ($img->getAttribute('title.

New Pull Request