@@ -33,7 +33,8 @@ $channel
3333$item = new Item();
3434$item
3535 ->title('Blog Entry Title')
36- ->description('<div >Blog body</div >')
36+ ->description('Blog body')
37+ ->contentEncoded('<div >Blog body</div >')
3738 ->url('http://blog.example.com/2012/08/21/blog-entry/')
3839 ->author('Hidehito Nozawa')
3940 ->pubDate(strtotime('Tue, 21 Aug 2012 19:50:37 +0900'))
@@ -56,22 +57,23 @@ Output:
5657
5758``` xml
5859<?xml version =" 1.0" encoding =" UTF-8" ?>
59- <rss version =" 2.0" >
60+ <rss xmlns : content = " http://purl.org/rss/1.0/modules/content/ " version =" 2.0" >
6061 <channel >
6162 <title >Channel Title</title >
6263 <link >http://blog.example.com</link >
6364 <description >Channel Description</description >
6465 <language >en-US</language >
6566 <copyright >Copyright 2012, Foo Bar</copyright >
66- <pubDate >Tue, 21 Aug 2012 19 :50:37 +0900 </pubDate >
67- <lastBuildDate >Tue, 21 Aug 2012 19 :50:37 +0900 </lastBuildDate >
67+ <pubDate >Tue, 21 Aug 2012 10 :50:37 +0000 </pubDate >
68+ <lastBuildDate >Tue, 21 Aug 2012 10 :50:37 +0000 </lastBuildDate >
6869 <ttl >60</ttl >
69- <item >
70+ <item xmlns : default = " http://purl.org/rss/1.0/modules/content/ " >
7071 <title >Blog Entry Title</title >
7172 <link >http://blog.example.com/2012/08/21/blog-entry/</link >
72- <description >< div> Blog body< /div> </description >
73+ <description >Blog body</description >
74+ <content : encoded xmlns =" http://purl.org/rss/1.0/modules/content/" ><![CDATA[ <div>Blog body</div>]]> </content : encoded >
7375 <guid >http://blog.example.com/2012/08/21/blog-entry/</guid >
74- <pubDate >Tue, 21 Aug 2012 19 :50:37 +0900 </pubDate >
76+ <pubDate >Tue, 21 Aug 2012 10 :50:37 +0000 </pubDate >
7577 <author >Hidehito Nozawa</author >
7678 </item >
7779 <item >
0 commit comments