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