It has HTML and multiple lines and all that awesome stuff!!!!
Technology is so cool...
]]>It has HTML and multiple lines and all that awesome stuff!!!!
Technology is so cool...
HTML); $item->setCreatedAt(1727485985); $item->setContentUrl('https://example.railgun.sh/articles/1'); $item->setCommentsUrl('https://example.railgun.sh/articles/1#comments'); $item->setAuthorName('flashwave'); $item->setAuthorUrl('https://example.railgun.sh/author/1'); }); $feed->createEntry(function($item) { $item->setTitle('Article 2'); $item->setDescription(<<hidden author spooky HTML); $item->setCreatedAt(1727585985); $item->setContentUrl('https://example.railgun.sh/articles/2'); $item->setCommentsUrl('https://example.railgun.sh/articles/2#comments'); }); $feed->createEntry(function($item) { $item->setTitle('Article 3 without a description'); $item->setCreatedAt(1727685985); $item->setContentUrl('https://example.railgun.sh/articles/3'); $item->setCommentsUrl('https://example.railgun.sh/articles/3#comments'); $item->setAuthorName('Anonymous'); }); $this->assertEquals(self::ITEMS_FEED, $feed->toXmlString()); } }