Skip to content

Commit

Permalink
[FolhaDeSaoPauloBridge]: Improvements
Browse files Browse the repository at this point in the history
[FolhaDeSaoPauloBridge]: Improvements
  • Loading branch information
teromene committed Apr 3, 2020
2 parents badb531 + 223337d commit 5a43db4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridges/FolhaDeSaoPauloBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ protected function parseItem($item){
$item_content = $articleHTMLContent->find('div.c-news__body', 0);
if ($item_content) {
$text = $item_content->innertext;
$text = strip_tags($text, '<p><b><a><blockquote><img><em>');
$text = strip_tags($text, '<p><b><a><blockquote><figure><figcaption><img><strong><em>');
$item['content'] = $text;
$item['uri'] = explode('*', $item['uri'])[1];
}
} else {
Debug::log('???: ' . $item['uri']);
Expand Down

0 comments on commit 5a43db4

Please sign in to comment.