3
1
Back

} elseif (strpos($alt_text, $title_text) !== false){ } elseif (strpos($alt_text, $title_text) !== false){ } elseif (strpos($title_text, $alt_text) !== False) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); if (!$base_url){ $base_url = $article['link']; } From b404e3f9c5cb79c1ce2c1b1d88da892bdd69efea Mon Sep 17 00:00:00 2001 .../Panels/UNSEEN SERVANT.png | Bin 0 -> 328607 bytes Images/PXL_20210831_001017829.jpg | Bin 0 -> 29479 bytes .../VALMORIFICATION+Build+and+BOM.pdf | Bin 0 -> 16561 bytes 3D Printing/Panels/image.png | Bin 12821 -> 0 bytes elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get the blog $entries = $xpath->query($query); $result_html .

New Pull Request