3
1
Back

$img_attributes_whitelist = array('src', 'alt', 'title'); if (!$base_url){ $base_url = $article['link']; From 122134fc8e1c73b6bb86552323cca038dd4b5107 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users Invisible Bread, Softer World (alt tags), Dinosaur Comics Cleanup // Dinosaur Comics Cleanup $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags textified. $alt_element = $doc->createElement("i", $title_text); } function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= $entry->ownerDocument->saveXML($entry.

New Pull Request