Skip to content

Commit

Permalink
[LeMondeInformatique] Remove encoding conversion
Browse files Browse the repository at this point in the history
Was previously needed due to actual encoding on the page
being inconsistent with encoding specified in <meta> tag
  • Loading branch information
ORelio committed Aug 12, 2020
1 parent 90e9c99 commit 8b173b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridges/LeMondeInformatiqueBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ protected function parseItem($newsItem){

//No response header sets the encoding, explicit conversion is needed or subsequent xml_encode() will fail
$content_node = $article_html->find('div.col-primary, div.col-sm-9', 0);
$item['content'] = utf8_encode($this->cleanArticle($content_node->innertext));
$item['author'] = utf8_encode($article_html->find('div.author-infos', 0)->find('b', 0)->plaintext);
$item['content'] = $this->cleanArticle($content_node->innertext);
$item['author'] = $article_html->find('div.author-infos', 0)->find('b', 0)->plaintext;

return $item;
}
Expand Down

0 comments on commit 8b173b8

Please sign in to comment.