fix pm_snippet bug

This commit is contained in:
Michael Foster 2013-08-31 13:26:53 +10:00
parent d166fc70bd
commit 94ac200d57

View File

@ -112,7 +112,7 @@ function pm_snippet($body, $len=null) {
$len = &$config['mod']['snippet_length']; $len = &$config['mod']['snippet_length'];
// Replace line breaks with some whitespace // Replace line breaks with some whitespace
$body = str_replace('<br/>', ' ', $body); $body = preg_replace('@<br/?>@i', ' ', $body);
// Strip tags // Strip tags
$body = strip_tags($body); $body = strip_tags($body);