diff --git a/bridges/Rue89Bridge.php b/bridges/Rue89Bridge.php new file mode 100644 index 0000000..3bb313d --- /dev/null +++ b/bridges/Rue89Bridge.php @@ -0,0 +1,50 @@ +', '', $string); + return $string; + } + function Rue89ExtractContent($url) { + $html2 = file_get_html($url); + //$text = $html2->find('div[class=text]', 0)->innertext; + $text = $html2->find('div article', 0)->innertext; + //$text = $html2->find('div.article', 0)->innertext; + //$text = $html2->find('div[id=main]', 0)->innertext; + //$text = $html2->find('div[id=article]', 0)->innertext; + //$text = preg_replace('/(