fixed multiple breakage possibilities with feeds

git-svn-id: http://svn.automattic.com/wordpress/trunk@1039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
michelvaldrighi 2004-03-31 16:41:30 +00:00
parent c23b50d0da
commit a6ac8d41f7
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,7 @@ function get_the_title() {
function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
}
@ -91,6 +92,7 @@ function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file
$excerpt .= ($use_dotdotdot) ? '...' : '';
$content = $excerpt;
}
$content = str_replace(']]>', ']]>', $content);
echo $content;
}
@ -151,6 +153,7 @@ function the_excerpt_rss($cut = 0, $encode_html = 0) {
$output = make_url_footnote($output);
} elseif ($encode_html == 2) {
$output = strip_tags($output);
$output = str_replace('&', '&', $output);
}
if ($cut) {
$excerpt = '';
@ -168,6 +171,7 @@ function the_excerpt_rss($cut = 0, $encode_html = 0) {
$excerpt .= ($use_dotdotdot) ? '...' : '';
$output = $excerpt;
}
$output = str_replace(']]>', ']]>', $output);
echo $output;
}