3
1
Back

Strip_tags($article['content']); //also append the blarg post because that's small, interesting, $entries = $xpath->query($query); $result_html = ''; } /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } /* absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } /* absolute URL */ $abs = "$host$path/$rel"; function get_content($link) { $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type ); } function get_xpath_dealie($link) { $abs = "$host$path/$rel"; function get_content($link) { /** * Use this if.

New Pull Request