From afee0c02981d3918a888d5bbe164f3a8d0e1e87e Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 1 May 2017 18:58:14 +0200 Subject: The "excerpt" function has been optimized. --- core/functions.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core/functions.php') diff --git a/core/functions.php b/core/functions.php index 89ed2f5..91a4006 100644 --- a/core/functions.php +++ b/core/functions.php @@ -307,6 +307,7 @@ function excerpt($string, $length = 500, $replace = ' […]') { $string = removeHTML($string); $string = removeDoubleLineBreaks($string); $string = cut($string, $length, $replace); + $string = trim($string); $string = nl2br($string); return $string; -- cgit v1.2.3