3
1
Back

(Other "top rounding *" parameters are only relevant if checked.) enable_top_rounding = false; $title_text = trim($img->getAttribute('title')); $title_text = false; if ($alt_text && !$title_text){ $text_element = $doc->createElement("i", $title_text); } else if (bottom_element=="switch") { } /* absolute URL is ready! */ return $scheme.'://'.$abs; } /* dirty absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); // Doghouse Diaries, which has broken.

New Pull Request