forked from blallo/rss-bridge
Merge pull request #285 from teromene/pmaziere-TwitterBridgeFix
TwitterBridge*: fix HTML entities in title
This commit is contained in:
commit
980075c8f9
3 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ class TwitterBridge extends BridgeAbstract{
|
|||
$link->removeAttribute('title');
|
||||
}
|
||||
$item->content = str_replace('href="/', 'href="https://twitter.com/', strip_tags($tweet->find('p.js-tweet-text', 0)->innertext, '<a>')); // extract tweet text
|
||||
$item->title = $item->fullname . ' (@' . $item->username . ') | ' . strip_tags($item->content);
|
||||
$item->title = $item->fullname . ' (@' . $item->username . ') | ' . html_entity_decode(strip_tags($item->content),ENT_QUOTES,'UTF-8');
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ class TwitterBridgeClean extends BridgeAbstract{
|
|||
$link->removeAttribute('dir');
|
||||
}
|
||||
$item->content = str_replace('pic.twitter.com', 'https://pic.twitter.com', strip_tags($tweet->find('p.js-tweet-text', 0)->innertext)); // extract tweet text
|
||||
$item->title = $item->content;
|
||||
$item->title = html_entity_decode($item->content,ENT_QUOTES,'UTF-8');
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ class TwitterBridgeCleanExtended extends BridgeAbstract{
|
|||
$item->content = '♻ @' . $item->username . ': ' . $item->content;
|
||||
}
|
||||
}
|
||||
$item->title = $item->content;
|
||||
$item->title = html_entity_decode($item->content,ENT_QUOTES,'UTF-8');
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue