3
1
Back

An example is provided in the post that we want $url_xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = $matches[1]; } } // SatW elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && Various updates, additions Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title.

New Pull Request