3
1
Back

DOMDocument(); $doc->loadHTML($html); $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); $article['content'] .= "
ID: " . $article['id']; } function hook_render_article($article) { return $this->mangle_article($article); } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query($query); $result_html = ''; function get_xpath_dealie($link) { } else.

New Pull Request