mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 07:37:27 +02:00
Updated FeedExpander (markdown)
@@ -18,14 +18,14 @@ Find a [template](#template) at the end of this file.
|
|||||||
This function receives one item from the current feed and should return one **RSS-Bridge** item.
|
This function receives one item from the current feed and should return one **RSS-Bridge** item.
|
||||||
The default function does all the work to get the item data from the feed, whether it is RSS 1.0,
|
The default function does all the work to get the item data from the feed, whether it is RSS 1.0,
|
||||||
RSS 2.0 or ATOM 1.0. If you have to redefine this function in your **RSS-Bridge** for whatever reason,
|
RSS 2.0 or ATOM 1.0. If you have to redefine this function in your **RSS-Bridge** for whatever reason,
|
||||||
you should call the parent function to initialize the item, then apply the changes that you require.
|
you should first call the parent function to initialize the item, then apply the changes that you require.
|
||||||
|
|
||||||
**Notice:** The following code sample is just an example. Implementation depends on your requirements!
|
**Notice:** The following code sample is just an example. Implementation depends on your requirements!
|
||||||
|
|
||||||
```PHP
|
```PHP
|
||||||
protected function parseItem($feedItem){
|
protected function parseItem($feedItem){
|
||||||
$item = parent::parseItem($feedItem);
|
$item = parent::parseItem($feedItem);
|
||||||
$item['content'] = str_replace('rssbridge','RSS-Bridge',$feedItem->content);
|
$item['content'] = str_replace('rssbridge','RSS-Bridge',$feedItem->content);
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user