mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 08:39:07 +01:00
change convertHTMLToText behavior, regarding the replacing of CRLF or LF to single space; now removing them completely, when text to be processed is regarded to be html
This commit is contained in:
parent
a43e26f8b3
commit
5e425398fa
@ -1118,14 +1118,14 @@ class translation
|
||||
if (stripos($elem,'<pre>')===false)
|
||||
{
|
||||
//$elem = str_replace('@(\r\n)@i',' ',$elem);
|
||||
$elem = str_replace(array("\r\n","\n"),' ',$elem);
|
||||
$elem = str_replace(array("\r\n","\n"),($isHTML?'':' '),$elem);
|
||||
}
|
||||
}
|
||||
$_html = implode('',$contentArr);
|
||||
}
|
||||
else
|
||||
{
|
||||
$_html = str_replace(array("\r\n","\n"),' ',$_html);
|
||||
$_html = str_replace(array("\r\n","\n"),($isHTML?'':' '),$_html);
|
||||
}
|
||||
}
|
||||
$tags = array (
|
||||
|
Loading…
Reference in New Issue
Block a user