Ticket #4242: export-cdata.diff
File export-cdata.diff, 1.6 KB (added by , 18 years ago) |
---|
-
wp-admin/export.php
178 178 <title><?php the_title_rss() ?></title> 179 179 <link><?php permalink_single_rss() ?></link> 180 180 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate> 181 <dc:creator><?php the_author()?></dc:creator>181 <dc:creator><?php echo wxr_cdata(get_the_author()); ?></dc:creator> 182 182 <?php the_category_rss() ?> 183 183 184 184 <guid isPermaLink="false"><?php the_guid(); ?></guid> 185 185 <description></description> 186 <content:encoded>< ![CDATA[<?php echo $post->post_content ?>]]></content:encoded>186 <content:encoded><?php echo wxr_cdata($post->post_content); ?></content:encoded> 187 187 <wp:post_id><?php echo $post->ID; ?></wp:post_id> 188 188 <wp:post_date><?php echo $post->post_date; ?></wp:post_date> 189 189 <wp:post_date_gmt><?php echo $post->post_date_gmt; ?></wp:post_date_gmt> … … 216 216 <wp:comment_author_IP><?php echo $c->comment_author_IP; ?></wp:comment_author_IP> 217 217 <wp:comment_date><?php echo $c->comment_date; ?></wp:comment_date> 218 218 <wp:comment_date_gmt><?php echo $c->comment_date_gmt; ?></wp:comment_date_gmt> 219 <wp:comment_content><?php echo $c->comment_content; ?></wp:comment_content>219 <wp:comment_content><?php echo wxr_cdata($c->comment_content); ?></wp:comment_content> 220 220 <wp:comment_approved><?php echo $c->comment_approved; ?></wp:comment_approved> 221 221 <wp:comment_type><?php echo $c->comment_type; ?></wp:comment_type> 222 222 <wp:comment_parent><?php echo $c->comment_parent; ?></wp:comment_parent>