fixed multiple breakage possibilities with feeds

git-svn-id: https://develop.svn.wordpress.org/trunk@1039 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
michelvaldrighi 2004-03-31 16:41:30 +00:00
parent 5160634407
commit 516fe098a8
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;
}