3
1
Back

D="M -6.8897672,9.54725 V 9.744101" d="m -3.4448859,9.645676 h -0.19685" d="m -2.5590543,2.521019 v 0.07874" d="M 2.992121,8.8582675 H 2.913381" It's really just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); } // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { if (!$alt_text || strpos($article['title'], $alt_text) !== false){ // there's both alt and title texts, they're both different, use both.

New Pull Request