3
1
Back

// Eat That Toast bog-standard example // Breaking Cat News elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // And get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } } foreach($imgs as $img){ foreach ($imgs as $img) { if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $alt_text); .

New Pull Request