mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-24 18:36:59 +03:00
fix(FilterBridge): trim title so that regex filter works as expected (#3989)
The fix is in FeedParser, so this fixes all usages of FeedParser where title is now trimmed. fix #3985
This commit is contained in:
parent
35f6e62e45
commit
4c355ba308
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ final class FeedParser
|
|||
$item['uri'] = (string)$feedItem->id;
|
||||
}
|
||||
if (isset($feedItem->title)) {
|
||||
$item['title'] = html_entity_decode((string)$feedItem->title);
|
||||
$item['title'] = trim(html_entity_decode((string)$feedItem->title));
|
||||
}
|
||||
if (isset($feedItem->updated)) {
|
||||
$item['timestamp'] = strtotime((string)$feedItem->updated);
|
||||
|
@ -154,7 +154,7 @@ final class FeedParser
|
|||
$item['uri'] = (string)$feedItem->link;
|
||||
}
|
||||
if (isset($feedItem->title)) {
|
||||
$item['title'] = html_entity_decode((string)$feedItem->title);
|
||||
$item['title'] = trim(html_entity_decode((string)$feedItem->title));
|
||||
}
|
||||
if (isset($feedItem->description)) {
|
||||
$item['content'] = (string)$feedItem->description;
|
||||
|
|
Loading…
Reference in a new issue