mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 11:23:54 +01:00
specify encoding, as it defaults to latin1 (iso-8859-1) which is not longer used by EGroupware and writes non-ascii as entities
This commit is contained in:
parent
0947430796
commit
7984af4c0e
@ -734,8 +734,9 @@ abstract class bo_merge
|
||||
if (is_string($value) && (strpos($value,'<') !== false))
|
||||
{
|
||||
// Clean HTML, if it's being kept
|
||||
if($replace_tags && extension_loaded('tidy')) {
|
||||
$value = tidy_repair_string($value, self::$tidy_config);
|
||||
if($replace_tags && extension_loaded('tidy'))
|
||||
{
|
||||
$value = tidy_repair_string($value, self::$tidy_config, 'utf8');
|
||||
}
|
||||
// replace </p> and <br /> with CRLF (remove <p> and CRLF)
|
||||
$value = str_replace(array("\r","\n",'<p>','</p>','<br />'),array('','','',"\r\n","\r\n"),$value);
|
||||
|
Loading…
Reference in New Issue
Block a user