Updated FeedExpander (markdown)

pmaziere 2016-09-17 21:47:40 +02:00
parent 60b599a0bd
commit df2053893d

@ -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;
}