Remove extraneous HTML decode in Markdown::toBBCode

This commit is contained in:
Hypolite Petovan 2020-03-11 09:01:50 -04:00
parent b0dc3d6cf9
commit 5c726493ae

View file

@ -109,8 +109,6 @@ class Markdown
*/
public static function toBBCode($s)
{
$s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
// The parser cannot handle paragraphs correctly
$s = str_replace(['</p>', '<p>', '<p dir="ltr">'], ['<br>', '<br>', '<br>'], $s);