3
1
Back

Textified. $doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); $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("div"); $para_element = $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, "//div//img[contains(@src, 'images') and contains(@src, 'comics.

New Pull Request