diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-31 13:26:53 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-31 13:26:53 +1000 |
| commit | 94ac200d5752995560426d210559c63edf44ad85 (patch) | |
| tree | 188af12f942437e73623183313148cf86c539649 | |
| parent | d166fc70bd6378c3f72b7f40e71a79fcb63bc1f2 (diff) | |
fix pm_snippet bug
| -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); |
