mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-07 00:26:00 +03:00
Updated FeedExpander (markdown)
parent
60b599a0bd
commit
df2053893d
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
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,
|
||||
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!
|
||||
|
||||
```PHP
|
||||
protected function 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue