diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index f585dd784b..df9fbf66cf 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -931,8 +931,8 @@ abstract class bo_merge break; } // now decode &, < and >, which need to be encoded as entities in xml - //$replacements = str_replace(array('&','<','>',"\r","\n"),array('&','<','>','',$break),$replacements); - $replacements = str_replace(array('&',"\r","\n"),array('&','',$break),$replacements); + // Check for encoded >< getting double-encoded + $replacements = str_replace(array('&',"\r","\n",'&lt;','&gt;'),array('&','',$break,'<','>'),$replacements); } return str_replace(array_keys($replacements),array_values($replacements),$content); }