remove \n\n

This commit is contained in:
Christopher 2020-10-23 22:04:14 +02:00
parent 4df2251ff7
commit 32312faf99
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@
function clean($string)
{
$string = str_replace("", "", $string);
$string = str_replace("\r", "", $string);
$string = str_replace("\r", "\n", $string);
$string = str_replace("\n\n", "\n", $string);
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $string);
}