summaryrefslogtreecommitdiff
path: root/providers
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-06-13 00:41:26 +0200
committeremkael <emkael@tlen.pl>2019-06-13 00:41:26 +0200
commitd638b1a5f102d2aa7a3b0f06f070eaf2ac1a499a (patch)
treeb92e18d5ac1bfff9f55ca62a3e0cb4efc0c54997 /providers
parentcf27fd41f2cf3a61e7103a2311f123b0035fbf9c (diff)
Decoding UTF-8 in FB metadata
Diffstat (limited to 'providers')
-rw-r--r--providers/Facebook.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/Facebook.php b/providers/Facebook.php
index ed9f8f1..24645c7 100644
--- a/providers/Facebook.php
+++ b/providers/Facebook.php
@@ -41,7 +41,7 @@ class Facebook extends \Providers\HtmlFeed {
$key = $data['story_fbid'];
$texts = [];
foreach ($header->find('p, h3') as $paragraph) {
- $texts[] = $paragraph->text();
+ $texts[] = utf8_decode($paragraph->text());
}
if (isset($this->_options['dump'])) {
print_r($data);