3
1
Back

Tag. Function alt_textify($article, $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $imgs = $xpath->query('//img.

New Pull Request