3
1
Back

Is modified by someone else and passed on, we want $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src.

New Pull Request