mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Mail - another fix for extra newlines, now with less out of memory errors
This commit is contained in:
parent
0232ab96d4
commit
397b77a86d
@ -311,7 +311,7 @@ class Html
|
||||
4 => '~<li[^>]*>\r*\n*~si',
|
||||
5 => '~<br[^>]*>\r*\n*~si',
|
||||
6 => '~<br[^>]*>~si',
|
||||
7 => '~<p[^>]*>\r*\n*~si',
|
||||
7 => '~<\/p[^>r]*>\r*\n*~si',
|
||||
8 => '~<div[^>]*>\r*\n*~si',
|
||||
9 => '~<span[^>]*>\r*\n*~si',
|
||||
10 => '~<hr[^>]*>\r*\n*~si',
|
||||
@ -345,6 +345,8 @@ class Html
|
||||
17 => '#lower#than#$1',
|
||||
18 => '#greater#than#$1',
|
||||
);
|
||||
error_log(__LINE__);
|
||||
error_log($_html);
|
||||
$_html = preg_replace($tags,$Replace,$_html);
|
||||
$_html = preg_replace('~</t(d|h)>\s*<t(d|h)[^>]*>~si',' - ',$_html);
|
||||
$_html = preg_replace('~<img[^>]+>~s','',$_html);
|
||||
|
Loading…
Reference in New Issue
Block a user