[cc-commits] [CC SVN] r12722 - cchost/trunk/cchost_lib
webmaster at creativecommons.org
webmaster at creativecommons.org
Thu Jun 4 15:17:33 EDT 2009
Author: fourstones
Date: 2009-06-04 19:17:33 +0000 (Thu, 04 Jun 2009)
New Revision: 12722
Modified:
cchost/trunk/cchost_lib/cc-feeds-rss.php
Log:
more tweaking on podcast feed
Modified: cchost/trunk/cchost_lib/cc-feeds-rss.php
===================================================================
--- cchost/trunk/cchost_lib/cc-feeds-rss.php 2009-06-04 18:53:40 UTC (rev 12721)
+++ cchost/trunk/cchost_lib/cc-feeds-rss.php 2009-06-04 19:17:33 UTC (rev 12722)
@@ -151,14 +151,13 @@
if( strpos($R['topic_text_plain'],'enclosure_url') !== false )
{
// this is podcast
- $R['topic_text_html'] = htmlentities($R['topic_text_plain']);
+ $R['topic_text_html'] = ''; //htmlentities($R['topic_text_plain']);
preg_match_all('/enclosure_(url|size|type)%([^%]+)%/U',$R['topic_text_plain'],$m);
for( $i = 0; $i < 3; $i++ )
{
$R['enclosure_' . $m[1][$i]] = $m[2][$i];
}
- $text = preg_replace('#(</div>|</h2>|</li>)#',"\n\r" . '$1', $R['topic_text_plain']);
- $R['topic_text_plain'] = htmlentities(nl2br(strip_tags($text)));
+ $R['topic_text_plain'] = '<![CDATA[' . $R['topic_text_plain'] . ']]>';
}
}
More information about the cc-commits
mailing list