Decode HTML entities in code blocks in HTML::toBBCode

- Replace PHP_EOL uses with the more common \n
This commit is contained in:
Hypolite Petovan 2021-10-15 11:36:40 -04:00
parent ca1801a164
commit f9165fbaf0
1 changed files with 1 additions and 1 deletions

View File

@ -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
);