From 94ac200d5752995560426d210559c63edf44ad85 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sat, 31 Aug 2013 13:26:53 +1000 Subject: [PATCH] fix pm_snippet bug --- inc/display.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/display.php b/inc/display.php index 4639e86e..96624fda 100644 --- a/inc/display.php +++ b/inc/display.php @@ -112,7 +112,7 @@ function pm_snippet($body, $len=null) { $len = &$config['mod']['snippet_length']; // Replace line breaks with some whitespace - $body = str_replace('
', ' ', $body); + $body = preg_replace('@
@i', ' ', $body); // Strip tags $body = strip_tags($body);