diff --git a/admin/survey/export/latexclasses/class.LatexAnalysisElement.php b/admin/survey/export/latexclasses/class.LatexAnalysisElement.php index a5b57be12..87047e273 100644 --- a/admin/survey/export/latexclasses/class.LatexAnalysisElement.php +++ b/admin/survey/export/latexclasses/class.LatexAnalysisElement.php @@ -933,12 +933,12 @@ class LatexAnalysisElement{ $text = str_replace('>','\textgreater',$text); $text = str_replace(' ',' ',$text); if(strpos($text, '&')){ //ce je prisotno v besedilu &' - $text = str_replace('&','\& ',$text); + $text = str_replace('&','\&',$text); }else{ - $text = str_replace('&','\& ',$text); + $text = str_replace('&','\&',$text); } - $andSymbolPresent = 0; +/* $andSymbolPresent = 0; $posAndSymbolPresent = strpos($text,'&'); if($posAndSymbolPresent !== false){ //ce je v besedilu prisoten '&' zapisan kot '&' $text = str_replace('&','\&',$text); @@ -946,7 +946,7 @@ class LatexAnalysisElement{ } if($andSymbolPresent == 0){ $text = str_replace('&','\&',$text); - } + } */ /* //$text = str_replace('<','\textless ',$text); $text = str_replace('<','\textless',$text); @@ -1074,7 +1074,7 @@ class LatexAnalysisElement{ $text = "\seqsplit{".$text."}"; //ni v redu seqsplit, ker ne dela, če so posebni znaki } //priprava izpisa zelo dolgega besedila brez presledkov - konec - + //echo "Encoding ".$text."
"; return strip_tags($text); //vrni tekst brez html tag-ov }