diff options
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r-- | phpBB/includes/message_parser.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index c961062ac8..344fdff8a6 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -338,10 +338,7 @@ class bbcode_firstpass extends bbcode // Because highlight_string is specialcharing the text (but we already did this before), we have to reverse this in order to get correct results $code = html_entity_decode($code); - ob_start(); - highlight_string($code); - $code = ob_get_contents(); - ob_end_clean(); + $code = highlight_string($code, true); $str_from = array('<font color="syntax', '</font>', '<code>', '</code>','[', ']', '.', ':'); $str_to = array('<span class="syntax', '</span>', '', '', '[', ']', '.', ':'); |