$rss = new UniversalFeedCreator();
$rss->useCached();
$rss->title = "Artjom Kurapov";
$rss->description = "Personal Blog";
$rss->link = "http://kurapov.name/";
The validator still swears at flash (hence the object is not supported). Also, do not like relative paths. Of course you can change the WYSIWYG so that it immediately generates absolute paths, but in case you have to change the domain, you will have to work a lot with the base. Therefore, we generate them with RSS.$recEntry->description=preg_replace("//i",'',$recEntry->description);
$recEntry->description=str_replace("href='/","href='http://kurapov.name/",$recEntry->description);
$recEntry->description=str_replace('href="/','href="http://kurapov.name/',$recEntry->description);
$recEntry->date = date('r',$item->unix_added);
$rss->addItem($recEntry);
echo $rss->saveFeed("RSS2.0", "feed.xml");
Source: https://habr.com/ru/post/13064/
All Articles