#380 rss에서 html을 제대로 출력하도록 수정

This commit is contained in:
khongchi 2014-01-29 11:49:47 +09:00
parent 9d9dda94c6
commit 58e141c48a
3 changed files with 8 additions and 8 deletions

View file

@ -11,7 +11,7 @@
<link rel="self" type="application/atom+xml" href="{$info->id}"/> <link rel="self" type="application/atom+xml" href="{$info->id}"/>
<generator uri="http://www.xpressengine.com/">XpressEngine</generator> <generator uri="http://www.xpressengine.com/">XpressEngine</generator>
<!--@foreach($document_list as $oDocument)--> <entry> <!--@foreach($document_list as $oDocument)--> <entry>
<title><![CDATA[{str_replace('\'', '&apos;', htmlspecialchars($oDocument->getTitleText(), ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}]]></title> <title><![CDATA[{$oDocument->getTitleText()}]]></title>
<id>{$oDocument->getPermanentUrl()}</id> <id>{$oDocument->getPermanentUrl()}</id>
<published>{$oDocument->getRegdate('Y-m-d\TH:i:sP')}</published> <published>{$oDocument->getRegdate('Y-m-d\TH:i:sP')}</published>
<updated>{zdate($oDocument->get('last_update'),'Y-m-d\TH:i:sP')}</updated> <updated>{zdate($oDocument->get('last_update'),'Y-m-d\TH:i:sP')}</updated>
@ -24,9 +24,9 @@
<!--@end--> <!--@end-->
</author> </author>
<!--@if($open_rss_config[$oDocument->get('module_srl')]=='Y')--> <!--@if($open_rss_config[$oDocument->get('module_srl')]=='Y')-->
<content type="html"><![CDATA[{str_replace('\'', '&apos;', htmlspecialchars($oDocument->getTransContent(false,false,true), ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}]]></content> <content type="html"><![CDATA[{$oDocument->getTransContent(false,false,true)}]]></content>
<!--@else--> <!--@else-->
<summary type="text"><![CDATA[{str_replace('\'', '&apos;', htmlspecialchars($oDocument->getContentText(100), ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}]]></summary> <summary type="text"><![CDATA[{$oDocument->getContentText(100)}]]></summary>
<!--@end--> <!--@end-->
<!--@foreach($oDocument->get('tag_list') as $tag)--> <!--@foreach($oDocument->get('tag_list') as $tag)-->
<category term="{str_replace('\'', '&apos;', htmlspecialchars($tag, ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}"/> <category term="{str_replace('\'', '&apos;', htmlspecialchars($tag, ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}"/>

View file

@ -4,7 +4,7 @@
<channel rdf:about="{getUrl('','mid',$mid,'module','rss','act','rss','format','rss1.0','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date'))}"> <channel rdf:about="{getUrl('','mid',$mid,'module','rss','act','rss','format','rss1.0','page',Context::get('page'),'start_date',Context::get('start_date'),'end_date',Context::get('end_date'))}">
<title><![CDATA[{$info->title}]]></title> <title><![CDATA[{$info->title}]]></title>
<link>{$info->link}</link> <link>{$info->link}</link>
<description>{str_replace('\'', '&apos;', htmlspecialchars($info->description, ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}</description> <description><![CDATA[{$info->description}</description>
<items> <items>
<rdf:Seq> <rdf:Seq>
<!--@foreach($document_list as $oDocument)--> <!--@foreach($document_list as $oDocument)-->
@ -17,9 +17,9 @@
</channel> </channel>
<!--@foreach($document_list as $oDocument)--> <!--@foreach($document_list as $oDocument)-->
<item rdf:about="{$oDocument->getPermanentUrl()}"> <item rdf:about="{$oDocument->getPermanentUrl()}">
<title><![CDATA[{str_replace('\'', '&apos;',htmlspecialchars($oDocument->getTitleText(), ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}]]></title> <title><![CDATA[{$oDocument->getTitleText()}]]></title>
<link>{$oDocument->getPermanentUrl()}</link> <link>{$oDocument->getPermanentUrl()}</link>
<description><![CDATA[{str_replace('\'', '&apos;', htmlspecialchars($oDocument->getContentText(200), ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}]]></description> <description><![CDATA[{$oDocument->getContentText(200)}]]></description>
<dc:date>{$oDocument->getRegdate('Y-m-d\TH:i:sP')}</dc:date> <dc:date>{$oDocument->getRegdate('Y-m-d\TH:i:sP')}</dc:date>
</item> </item>
<!--@end--> <!--@end-->

View file

@ -29,9 +29,9 @@
<comments>{$oDocument->getPermanentUrl()}#comment</comments> <comments>{$oDocument->getPermanentUrl()}#comment</comments>
<!--@end--> <!--@end-->
<!--@if($open_rss_config[$oDocument->get('module_srl')]=='Y')--> <!--@if($open_rss_config[$oDocument->get('module_srl')]=='Y')-->
<description><![CDATA[{str_replace('\'', '&apos;', htmlspecialchars($oDocument->getTransContent(false,false,true), ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}]]></description> <description><![CDATA[{$oDocument->getTransContent(false,false,true)}]]></description>
<!--@else--> <!--@else-->
<description><![CDATA[{str_replace('\'', '&apos;', htmlspecialchars($oDocument->getContentText(100), ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}]]></description> <description><![CDATA[{$oDocument->getContentText(100)}]]></description>
<!--@end--> <!--@end-->
<pubDate>{$oDocument->getRegdateGM()}</pubDate> <pubDate>{$oDocument->getRegdateGM()}</pubDate>
<!--@foreach($oDocument->get('tag_list') as $tag)--> <!--@foreach($oDocument->get('tag_list') as $tag)-->