3
1
Back

The precise terms and conditions of title and alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $imgs = $xpath->query('//img'); $alt_text = trim($img->getAttribute('title')); $title_text = trim($img->getAttribute('title')); $title_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("div"); $para_element = $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); $article['content'] .= "
" . $msg . ""; } } // } // Two Lumps elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { function get_img_tags($xpath, $query, &$article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); if (!$base_url){ $base_url = $article['link']; } From d8a7439c05979d3c73da6a91162e90a1a48a57e5 Mon Sep 17 00:00:00 2001 .../Panels/MAGIC MOUTH.png | Bin 12821 -> 0 bytes Images/precadsr-panel.png | Bin 13962 -> 6771 bytes c852e5d6ad.

New Pull Request