Skip to content

Commit

Permalink
Fix excerpt on new PHP 5.4
Browse files Browse the repository at this point in the history
excerpt() on some newer versions of PHP 5.4 includes a space in the <br />.
Accomodate that and strip that value as well.
  • Loading branch information
markstory committed Nov 26, 2014
1 parent 3c8d033 commit 66f532a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Error/Debugger.php
Expand Up @@ -435,7 +435,7 @@ protected static function _highlight($str) {
$highlight = highlight_string($str, true);
if ($added) {
$highlight = str_replace(
'&lt;?php&nbsp;<br/>',
['&lt;?php&nbsp;<br/>', '&lt;?php&nbsp;<br />'],
'',
$highlight
);
Expand Down

0 comments on commit 66f532a

Please sign in to comment.