remove \n\n
This commit is contained in:
parent
4df2251ff7
commit
32312faf99
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue