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
|
@ -386,7 +386,7 @@ class HTML
|
||||||
$prefix = '[code=' . $matches[1] . ']';
|
$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
|
$message
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user