diff --git a/e107_plugins/pdf/e107pdf.php b/e107_plugins/pdf/e107pdf.php index 7fa5c1d93..c529037d4 100644 --- a/e107_plugins/pdf/e107pdf.php +++ b/e107_plugins/pdf/e107pdf.php @@ -232,8 +232,8 @@ class e107PDF extends UFPDF{ global $tp; global $admin_log; - $search = array("\n", "
", "
", '»', 'º', '·', '™', '©', '€', '[', '[', ' ', '‘', '’', ' />', '(', ')', '{', '}', '[', ']'); - $replace = array(" ", "
", "
", '»', 'º', '·', '™', '©', '', '[', '[', ' ', "'", "'", '>', '(', ')', '{', '}', '[',']' ); + $search = array("\n", "
", "
", '»', 'º', '·', '™', '©', '€', '[', '[', ' ', '‘', '’', ' />', '(', ')', '{', '}', '[', ']', '\', '\'); + $replace = array(" ", "
", "
", '»', 'º', '·', '™', '©', '', '[', '[', ' ', "'", "'", '>', '(', ')', '{', '}', '[',']', '\\\\', '\\\\' ); //replace carriage returns by spaces, and some html variants $html=str_replace($search, $replace, $html); $a=preg_split('/<(.*)>/U',$html,-1,PREG_SPLIT_DELIM_CAPTURE); //explodes the string