Latex za izvoze: Analize - Sumarnik: ureditev tezave s posebnimi znaki
This commit is contained in:
parent
7ee7626db4
commit
fab1f7f38a
@ -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."</br>";
|
||||
return strip_tags($text); //vrni tekst brez html tag-ov
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user