Mail - another fix for extra newlines, now with less out of memory errors

This commit is contained in:
nathangray 2019-08-29 11:53:24 -06:00
parent 0232ab96d4
commit 397b77a86d

View File

@ -311,7 +311,7 @@ class Html
4 => '~<li[^>]*>\r*\n*~si', 4 => '~<li[^>]*>\r*\n*~si',
5 => '~<br[^>]*>\r*\n*~si', 5 => '~<br[^>]*>\r*\n*~si',
6 => '~<br[^>]*>~si', 6 => '~<br[^>]*>~si',
7 => '~<p[^>]*>\r*\n*~si', 7 => '~<\/p[^>r]*>\r*\n*~si',
8 => '~<div[^>]*>\r*\n*~si', 8 => '~<div[^>]*>\r*\n*~si',
9 => '~<span[^>]*>\r*\n*~si', 9 => '~<span[^>]*>\r*\n*~si',
10 => '~<hr[^>]*>\r*\n*~si', 10 => '~<hr[^>]*>\r*\n*~si',
@ -345,6 +345,8 @@ class Html
17 => '#lower#than#$1', 17 => '#lower#than#$1',
18 => '#greater#than#$1', 18 => '#greater#than#$1',
); );
error_log(__LINE__);
error_log($_html);
$_html = preg_replace($tags,$Replace,$_html); $_html = preg_replace($tags,$Replace,$_html);
$_html = preg_replace('~</t(d|h)>\s*<t(d|h)[^>]*>~si',' - ',$_html); $_html = preg_replace('~</t(d|h)>\s*<t(d|h)[^>]*>~si',' - ',$_html);
$_html = preg_replace('~<img[^>]+>~s','',$_html); $_html = preg_replace('~<img[^>]+>~s','',$_html);