3
1
Back

Both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } $img->parentNode->replaceChild($new_element, $img); } function mangle_article($article) { // Wondermark (alt tag already present elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } Some comics supported elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Drugs and Wires elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { Fix for when invisiblebread has no bread achewood, gwss fix, fix for when invisible bread has no bread Pain Train alt tag, Alice Grove (get bigger image // $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $matches[1]; $img = $matches[1]; $img = $matches[1]; $img = $matches[1]; $img = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $img = $matches[1]; $img = $matches[1]; } } if(ADD_IDS){ $article['content'] .= "
$orig_content
"; } // Camp Weedonwantcha elseif (strpos($article['link.

New Pull Request