3
1
Back

$doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); $alt_text = trim($entry->getAttribute('alt')); $alt_text = trim($entry->getAttribute('alt')); $alt_text = trim($img->getAttribute('title')); $title_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } Gunnerkrigg and cleanup of alt-tag-only sites 2015-03-24 12:20:47 -07:00 55ee65a5e9 Go to file d5bfb6e27b 's notes on updating the fireball for rev 2 beta by adding.

New Pull Request