3
1
Back

Spaces in img src and quotes in alt/title text under images (extra useful for non-browser users $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article) { function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $base_url); foreach($attributes as $attrib_name => $node){ } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); //Sites that provide images and just need alt tags if both exist Updated LICD, alter alt-textify to handle both title and alt tags elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Softer World (alt tags), Dinosaur Comics Cleanup // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // there's an arrow shaped hole you can have. There aren't a lot of wiring and increases risk of noise on power rails. Things.

New Pull Request