mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Do not try to filter out html body as it would cause broken html content not being displayed at all
This commit is contained in:
parent
cda95d8188
commit
ce4b283a89
@ -3509,12 +3509,6 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
||||
}
|
||||
else
|
||||
{
|
||||
// htmLawed filter only the 'body'
|
||||
if (preg_match('`(<htm.+?<body[^>]*>)(.+?)(</body>.*?</html>)`ims', $newBody, $matches)&& !empty($matches[2]))
|
||||
{
|
||||
$hasOther = true;
|
||||
$newBody = $matches[2];
|
||||
}
|
||||
$htmLawed = new Api\Html\HtmLawed();
|
||||
// the next line should not be needed, but produces better results on HTML 2 Text conversion,
|
||||
// as we switched off HTMLaweds tidy functionality
|
||||
|
Loading…
Reference in New Issue
Block a user