diff options
Diffstat (limited to 'inc/display.php')
| -rw-r--r-- | inc/display.php | 2 |
1 files changed, 1 insertions, 1 deletions
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('<br/>', ' ', $body); + $body = preg_replace('@<br/?>@i', ' ', $body); // Strip tags $body = strip_tags($body); |
