From 57335ffb54ec52f3a8b3b5bd58b91b9aa0077a8c Mon Sep 17 00:00:00 2001 From: "m.korolev" Date: Tue, 20 Aug 2013 13:06:31 +0400 Subject: [PATCH] bugfix with & --- intaro.intarocrm/classes/general/ICMLLoader.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/intaro.intarocrm/classes/general/ICMLLoader.php b/intaro.intarocrm/classes/general/ICMLLoader.php index b976454e..11ff286b 100644 --- a/intaro.intarocrm/classes/general/ICMLLoader.php +++ b/intaro.intarocrm/classes/general/ICMLLoader.php @@ -40,7 +40,10 @@ class ICMLLoader { protected function PrepareValue($text) { - return $this->application->ConvertCharset($text, LANG_CHARSET, $this->encoding); + $newText = $this->application->ConvertCharset($text, LANG_CHARSET, $this->encoding); + $newText = strip_tags($newText); + $newText = str_replace("&", "&", $newText); + return $newText; } protected function PrepareFile()