mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
[TwitScoopBridge] Remove less than (<) character from item title (#2034)
This commit is contained in:
parent
146639ffc9
commit
65be209a47
1 changed files with 6 additions and 1 deletions
|
@ -106,10 +106,15 @@ class TwitScoopBridge extends BridgeAbstract {
|
|||
|
||||
$name = rtrim($li->find('span.trend.name', 0)->plaintext, ' ');
|
||||
$tweets = str_replace(' tweets', '', $li->find('span.tweets', 0)->plaintext);
|
||||
$tweets = str_replace('<', '<', $tweets);
|
||||
$tweets = str_replace('<', '', $tweets);
|
||||
|
||||
$item['title'] = '#' . $number . ' - ' . $name . ' (' . $tweets . ' tweets)';
|
||||
$item['uri'] = 'https://twitter.com/search?q=' . rawurlencode($name);
|
||||
|
||||
if ($tweets === '10K') {
|
||||
$tweets = 'less than 10K';
|
||||
}
|
||||
|
||||
$item['content'] = <<<EOD
|
||||
<strong>Rank</strong><br>
|
||||
<p>{$number}</p>
|
||||
|
|
Loading…
Add table
Reference in a new issue