mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
improve the code that removes \r characters
This commit is contained in:
parent
609ad47c38
commit
4a6bb88239
@ -50,7 +50,8 @@ class Parsedown
|
||||
$text = preg_replace('{^\xEF\xBB\xBF|\x1A}', '', $text);
|
||||
|
||||
# Removes \r characters.
|
||||
$text = str_replace("\r", '', $text);
|
||||
$text = str_replace("\r\n", "\n", $text);
|
||||
$text = str_replace("\r", "\n", $text);
|
||||
|
||||
# Replaces tabs with spaces.
|
||||
$text = str_replace("\t", ' ', $text);
|
||||
|
Loading…
Reference in New Issue
Block a user