forked from extern/egroupware
Slightly more intelligent detection of plain text fields in a document that has HTML parsing turned on
This commit is contained in:
parent
2e838983ca
commit
588862d150
@ -1039,8 +1039,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