mirror of https://github.com/danoloan10/rss-bridge
[TwitScoopBridge] Fix encoding of less than character (<) (#2023)
This commit is contained in:
parent
9e6f063cfd
commit
a6c0874b9a
|
@ -106,11 +106,12 @@ 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);
|
||||
|
||||
$item['title'] = '#' . $number . ' - ' . $name . ' - ' . htmlentities($tweets) . ' tweets';
|
||||
$item['title'] = '#' . $number . ' - ' . $name . ' (' . $tweets . ' tweets)';
|
||||
$item['uri'] = 'https://twitter.com/search?q=' . rawurlencode($name);
|
||||
$item['content'] = <<<EOD
|
||||
<Strong>Rank</strong><br>
|
||||
<strong>Rank</strong><br>
|
||||
<p>{$number}</p>
|
||||
<Strong>Topic</strong><br>
|
||||
<p>{$name}</p>
|
||||
|
|
Loading…
Reference in New Issue