diff --git a/bridges/GizmodoFRBridge.php b/bridges/GizmodoFRBridge.php index bb4bac1d..b2e8a21e 100644 --- a/bridges/GizmodoFRBridge.php +++ b/bridges/GizmodoFRBridge.php @@ -19,7 +19,7 @@ class GizmodoFRBridge extends BridgeAbstract{ $text = $text.$articleHTMLContent->find('div.entry-excerpt', 0)->innertext; $text = $text.$articleHTMLContent->find('div.entry-content', 0)->innertext; foreach($articleHTMLContent->find('pagespeed_iframe') as $element) { - $text = $text.'
link to a iframe (could be a video): '.$element->src.'
'; + $text = $text.'link to a iframe (could be a video): '.$element->src.'
');
diff --git a/bridges/LeJournalDuGeekBridge.php b/bridges/LeJournalDuGeekBridge.php
new file mode 100644
index 00000000..6620b76e
--- /dev/null
+++ b/bridges/LeJournalDuGeekBridge.php
@@ -0,0 +1,69 @@
+', '', $string);
+ return $string;
+ }
+
+ function LeJournalDuGeekExtractContent($url) {
+ $articleHTMLContent = file_get_html($url);
+ $text = $text.$articleHTMLContent->find('div.post-content', 0)->innertext;
+ foreach($articleHTMLContent->find('a.more') as $element) {
+ if ($element->innertext == "Source") {
+ $text = $text.'';
+ break;
+ }
+ }
+ foreach($articleHTMLContent->find('iframe') as $element) {
+ if (preg_match("/youtube/i", $element->src)) {
+ $text = $text.'// An IFRAME to Youtube was included in the article: '.$element->src.'
';
+ }
+ }
+
+ $text = strip_tags($text, '