Decode HTML entities in code blocks in HTML::toBBCode
- Replace PHP_EOL uses with the more common \n
This commit is contained in:
parent
ca1801a164
commit
f9165fbaf0
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ class HTML
|
|||
$prefix = '[code=' . $matches[1] . ']';
|
||||
}
|
||||
|
||||
return $prefix . PHP_EOL . trim($matches[2]) . PHP_EOL . '[/code]';
|
||||
return $prefix . "\n" . html_entity_decode($matches[2]) . "\n" . '[/code]';
|
||||
},
|
||||
$message
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue