mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 23:29:57 +09:00
Fix #872 remove CDATA from RSS/Atom feeds
This commit is contained in:
parent
4904ca5155
commit
f7915f8204
5 changed files with 27 additions and 27 deletions
|
|
@ -2,40 +2,40 @@
|
|||
|
||||
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
|
||||
<channel>
|
||||
<title><![CDATA[{$info->title}]]></title>
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
<description><![CDATA[{$info->description}]]></description>
|
||||
<description>{$info->description}</description>
|
||||
<language>{$info->language}</language>
|
||||
<pubDate>{$info->date}</pubDate>
|
||||
<lastBuildDate>{$info->date}</lastBuildDate>
|
||||
<generator>XpressEngine</generator>
|
||||
<generator>Rhymix</generator>
|
||||
<!--@if($info->feed_copyright)-->
|
||||
<copyright><![CDATA[{$info->feed_copyright}]]></copyright>
|
||||
<copyright>{$info->feed_copyright}</copyright>
|
||||
<!--@end-->
|
||||
<!--@if($info->image)-->
|
||||
<image>
|
||||
<url>{$info->image}</url>
|
||||
<title><![CDATA[{$info->title}]]></title>
|
||||
<title>{$info->title}</title>
|
||||
<link>{$info->link}</link>
|
||||
</image>
|
||||
<!--@end-->
|
||||
<!--@foreach($document_list as $oDocument)-->
|
||||
<item>
|
||||
<title><![CDATA[{str_replace('\'', ''',htmlspecialchars($oDocument->getTitleText(), ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}]]></title>
|
||||
<dc:creator><![CDATA[{str_replace('\'', ''',$oDocument->getNickName())}]]></dc:creator>
|
||||
<title>{$oDocument->getTitleText()}</title>
|
||||
<dc:creator>{escape($oDocument->getNickName(), false)}</dc:creator>
|
||||
<link>{$oDocument->getPermanentUrl()}</link>
|
||||
<guid isPermaLink="true">{$oDocument->getPermanentUrl()}</guid>
|
||||
<!--@if($oDocument->allowComment()) -->
|
||||
<comments>{$oDocument->getPermanentUrl()}#comment</comments>
|
||||
<!--@end-->
|
||||
<!--@if($open_rss_config[$oDocument->get('module_srl')]=='Y')-->
|
||||
<description><![CDATA[{$oDocument->getTransContent(false,false,true)}]]></description>
|
||||
<description>{$oDocument->getTransContent(false,false,true)}</description>
|
||||
<!--@else-->
|
||||
<description><![CDATA[{$oDocument->getContentText(100)}]]></description>
|
||||
<description>{$oDocument->getContentText(100)}</description>
|
||||
<!--@end-->
|
||||
<pubDate>{$oDocument->getRegdateGM()}</pubDate>
|
||||
<!--@foreach($oDocument->get('tag_list') as $tag)-->
|
||||
<category><![CDATA[{str_replace('\'', ''', htmlspecialchars($tag, ENT_COMPAT | ENT_HTML401, 'UTF-8', false))}]]></category>
|
||||
<category>{escape($tag, false)}</category>
|
||||
<!--@end-->
|
||||
<!--@if($oDocument->getCommentcount()>0)-->
|
||||
<slash:comments>{$oDocument->getCommentcount()}</slash:comments>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue