mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-22 05:29:34 +01:00
fix pm_snippet bug
This commit is contained in:
parent
f131b2396f
commit
4772cdaff0
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user