3
1
Back

505 lines | Refs | Qty | Component | Description | Vendor | SKU | | Tayda | A-1605 | \* Fit SIP socket in the post that we want $url_xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Questionable Content (cleanup) // Questionable Content (cleanup elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Awkward Zombie elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide.

New Pull Request