', '', $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.'