diff options
author | Thomas Lange <code@nerdmind.de> | 2017-05-01 18:58:14 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-05-01 18:58:14 +0200 |
commit | afee0c02981d3918a888d5bbe164f3a8d0e1e87e (patch) | |
tree | 4c61b8a8ff5298229725e16247733f1a523dd25d | |
parent | 37bb37f5a96dffa898b341c5ecf1231f1874fef1 (diff) | |
download | blog-afee0c02981d3918a888d5bbe164f3a8d0e1e87e.tar.gz blog-afee0c02981d3918a888d5bbe164f3a8d0e1e87e.tar.xz blog-afee0c02981d3918a888d5bbe164f3a8d0e1e87e.zip |
The "excerpt" function has been optimized.
-rw-r--r-- | core/functions.php | 1 |
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; |