[TwitterBridge] fix HTML entities decoding in title

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-19 17:20:49 +02:00
parent 251d7646b7
commit 9cc00cb212

View file

@ -80,7 +80,7 @@ class TwitterBridge extends BridgeAbstract{
// extract tweet timestamp // extract tweet timestamp
$item->timestamp = $tweet->find('span.js-short-timestamp', 0)->getAttribute('data-time'); $item->timestamp = $tweet->find('span.js-short-timestamp', 0)->getAttribute('data-time');
// generate the title // generate the title
$item->title = strip_tags($tweet->find('p.js-tweet-text', 0)->innertext); $item->title = strip_tags(html_entity_decode($tweet->find('p.js-tweet-text', 0)->innertext,ENT_QUOTES,'UTF-8'));
// processing content links // processing content links
foreach($tweet->find('a') as $link) { foreach($tweet->find('a') as $link) {