1
0

Strip tags from comments also in RSS-Feeds for comments, thanks to

tmix from the forums (garvinhicking)
This commit is contained in:
Garvin Hicking
2007-04-11 10:17:10 +00:00
parent 495ca545d7
commit c2c7f4357c
2 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,9 @@ function serendipity_printEntries_rss(&$entries, $version, $comments = false, $f
$entry['author'] .= ' - ' . $entry['ctitle'];
}
$entry['title'] = (!empty($entry['author']) ? $entry['author'] : ANONYMOUS) . ': ' . $entry['title'];
// No HTML allowed here:
$entry['body'] = strip_tags($entry['body']);
}
// Embed a link to extended entry, if existing