strip CDATA from title. Props pgarrett and mdawaffe. fixes #879

git-svn-id: http://svn.automattic.com/wordpress/trunk@4150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-08-31 17:36:35 +00:00
parent 64a2c6bdf1
commit 241d0e8f11
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class RSS_Import {
$index = 0;
foreach ($this->posts as $post) {
preg_match('|<title>(.*?)</title>|is', $post, $post_title);
$post_title = $wpdb->escape(trim($post_title[1]));
$post_title = str_replace(array('<![CDATA[', ']]>'), '', $wpdb->escape( trim($post_title[1]) ));
preg_match('|<pubdate>(.*?)</pubdate>|is', $post, $post_date_gmt);