aboutsummaryrefslogtreecommitdiffstats
path: root/core/functions.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-05-01 18:58:14 +0200
committerThomas Lange <code@nerdmind.de>2017-05-01 18:58:14 +0200
commitafee0c02981d3918a888d5bbe164f3a8d0e1e87e (patch)
tree4c61b8a8ff5298229725e16247733f1a523dd25d /core/functions.php
parent37bb37f5a96dffa898b341c5ecf1231f1874fef1 (diff)
downloadblog-afee0c02981d3918a888d5bbe164f3a8d0e1e87e.tar.gz
blog-afee0c02981d3918a888d5bbe164f3a8d0e1e87e.tar.xz
blog-afee0c02981d3918a888d5bbe164f3a8d0e1e87e.zip
The "excerpt" function has been optimized.
Diffstat (limited to 'core/functions.php')
-rw-r--r--core/functions.php1
1 files changed, 1 insertions, 0 deletions
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;