mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
Slightly more intelligent detection of plain text fields in a document that has HTML parsing turned on
This commit is contained in:
parent
96b75f7888
commit
474e32db67
@ -1041,8 +1041,9 @@ abstract class Merge
|
|||||||
$value = preg_replace('/&[^; ]+;/','',$value);
|
$value = preg_replace('/&[^; ]+;/','',$value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(!$this->parse_html_styles || (
|
||||||
if(!$this->parse_html_styles)
|
strpos($value, "\n") !== FALSE && strpos($value,'<br') === FALSE && strpos($value, '<span') === FALSE
|
||||||
|
))
|
||||||
{
|
{
|
||||||
// Encode special chars so they don't break the file
|
// Encode special chars so they don't break the file
|
||||||
$value = htmlspecialchars($value,ENT_NOQUOTES);
|
$value = htmlspecialchars($value,ENT_NOQUOTES);
|
||||||
|
Loading…
Reference in New Issue
Block a user