@@ -96,7 +96,7 @@ function freetype_answers ($parent_id, $anz_nutzer) {
96
96
$ counter ++;
97
97
fputs ($ fo_file ," <fo:table-row> \n" );
98
98
// fputs($fo_file," <fo:table-cell ><fo:block font-size=\"8pt\">".$counter.". ".htmlspecialchars($db_answers->f("text"))."</fo:block></fo:table-cell>\n");
99
- fputs ($ fo_file ," <fo:table-cell ><fo:block font-size= \"8pt \"> " .$ counter .". " .preg_replace ($ pattern ,$ replace ,smile (htmlspecialchars ($ answer ),TRUE ))."</fo:block></fo:table-cell> \n" );
99
+ fputs ($ fo_file ," <fo:table-cell ><fo:block font-size= \"8pt \"> " .$ counter .". " .preg_replace ($ pattern ,$ replace ,smile (htmlReady ($ answer ),TRUE ))."</fo:block></fo:table-cell> \n" );
100
100
fputs ($ fo_file ," </fo:table-row> \n" );
101
101
}
102
102
fputs ($ fo_file ," <fo:table-row> \n" );
@@ -172,7 +172,7 @@ function answers ($parent_id, $anz_nutzer, $question_type) {
172
172
$ prozente_wo_residual = 0 ;
173
173
if ($ has_residual && ($ answers_sum -$ has_residual )>0 ) $ prozente_wo_residual = ROUND ($ answer_counter *100 /($ anz_nutzer -$ has_residual ));
174
174
$ edit .= " <fo:table-row> \n" ;
175
- $ edit .= " <fo:table-cell ><fo:block font-size= \"8pt \"> " .$ antwort_nummer .". " .preg_replace ($ pattern ,$ replace ,smile (htmlspecialchars (($ answer ['text ' ]!="" ? $ answer ['text ' ] : $ answer ['value ' ])),TRUE ))."</fo:block></fo:table-cell> \n" ;
175
+ $ edit .= " <fo:table-cell ><fo:block font-size= \"8pt \"> " .$ antwort_nummer .". " .preg_replace ($ pattern ,$ replace ,smile (htmlReady (($ answer ['text ' ]!="" ? $ answer ['text ' ] : $ answer ['value ' ])),TRUE ))."</fo:block></fo:table-cell> \n" ;
176
176
177
177
if ($ has_residual ) $ edit .= " <fo:table-cell ><fo:block font-size= \"8pt \"> " .$ answer_counter ." ( " .$ prozente ."%) " .($ answer ['residual ' ] == 0 ? "( " .$ prozente_wo_residual ."%)* " : "" )."</fo:block></fo:table-cell> \n" ;
178
178
else $ edit .= " <fo:table-cell ><fo:block font-size= \"8pt \"> " .$ answer_counter ." ( " .$ prozente ."%)</fo:block></fo:table-cell> \n" ;
@@ -260,7 +260,7 @@ function groups ($parent_id) {
260
260
fputs ($ fo_file ," <!-- Groupblock --> \n" );
261
261
fputs ($ fo_file ," <fo:block font-variant= \"small-caps \" font-weight= \"bold \" text-align= \"start \" space-after.optimum= \"2pt \" background-color= \"lightblue \" space-before.optimum= \"10pt \"> \n" );
262
262
if (do_template ("show_group_headline " ))
263
- fputs ($ fo_file ," " .$ global_counter .". " .preg_replace ($ pattern ,$ replace ,smile (htmlspecialchars ($ group ['title ' ]),TRUE ))."\n" );
263
+ fputs ($ fo_file ," " .$ global_counter .". " .preg_replace ($ pattern ,$ replace ,smile (htmlReady ($ group ['title ' ]),TRUE ))."\n" );
264
264
fputs ($ fo_file ," </fo:block> \n" );
265
265
} else {
266
266
$ local_counter += 1 ;
@@ -272,7 +272,7 @@ function groups ($parent_id) {
272
272
fputs ($ fo_file ," <!-- Questionblock --> \n" );
273
273
fputs ($ fo_file ," <fo:block font-variant= \"small-caps \" font-weight= \"bold \" text-align= \"start \" background-color= \"grey \" color= \"white \" space-after.optimum= \"10pt \"> \n" );
274
274
if (do_template ("show_questionblock_headline " ))
275
- fputs ($ fo_file ," " .$ global_counter .". " .$ local_counter .". " .preg_replace ($ pattern ,$ replace ,smile (htmlspecialchars ($ group ['title ' ]),TRUE ))."\n" );
275
+ fputs ($ fo_file ," " .$ global_counter .". " .$ local_counter .". " .preg_replace ($ pattern ,$ replace ,smile (htmlReady ($ group ['title ' ]),TRUE ))."\n" );
276
276
fputs ($ fo_file ," </fo:block> \n" );
277
277
}
278
278
@@ -293,7 +293,7 @@ function groups ($parent_id) {
293
293
fputs ($ fo_file ," <!-- Question --> \n" );
294
294
fputs ($ fo_file ," <fo:block text-align= \"start \" font-weight= \"bold \" space-before.optimum= \"10pt \" space-after.optimum= \"10pt \"> \n" );
295
295
if (do_template ("show_questions " )) {
296
- fputs ($ fo_file ," " .$ global_counter .". " .$ local_counter .". " .$ local_question_counter .". " .preg_replace ($ pattern ,$ replace ,smile (htmlspecialchars ($ question ['text ' ]),TRUE ))."\n" );
296
+ fputs ($ fo_file ," " .$ global_counter .". " .$ local_counter .". " .$ local_question_counter .". " .preg_replace ($ pattern ,$ replace ,smile (htmlReady ($ question ['text ' ]),TRUE ))."\n" );
297
297
}
298
298
fputs ($ fo_file ," </fo:block> \n" );
299
299
fputs ($ fo_file ," <!-- table start --> \n" );
@@ -383,7 +383,7 @@ function groups ($parent_id) {
383
383
fputs ($ fo_file ," </fo:block></fo:table-cell > " );
384
384
foreach ($ questions ["antwort_texte " ] as $ k2 =>$ v2 ) { // 1. Unterebene, hier sind die Antworttexte abgelegt
385
385
fputs ($ fo_file ," <fo:table-cell ><fo:block space-before.optimum= \"10pt \" font-size= \"7pt \"> \n" );
386
- fputs ($ fo_file , preg_replace ($ pattern ,$ replace ,smile (htmlspecialchars ($ v2 ),TRUE )));
386
+ fputs ($ fo_file , preg_replace ($ pattern ,$ replace ,smile (htmlReady ($ v2 ),TRUE )));
387
387
fputs ($ fo_file ," </fo:block></fo:table-cell > " );
388
388
}
389
389
@@ -561,14 +561,14 @@ function groups ($parent_id) {
561
561
fputs ($ fo_file ," <!-- this defines a title level 2--> \n" );
562
562
563
563
fputs ($ fo_file ," <fo:block font-size= \"16pt \" font-weight= \"bold \" font-family= \"sans-serif \" space-before.optimum= \"10pt \" space-after.optimum= \"15pt \" text-align= \"center \"> \n" );
564
- fputs ($ fo_file ," " .preg_replace ($ pattern ,$ replace ,smile (htmlspecialchars ($ evaluation ['title ' ]),TRUE ))."\n" );
564
+ fputs ($ fo_file ," " .preg_replace ($ pattern ,$ replace ,smile (htmlReady ($ evaluation ['title ' ]),TRUE ))."\n" );
565
565
fputs ($ fo_file ," </fo:block> \n" );
566
566
fputs ($ fo_file ," <fo:block text-align= \"start \" line-height= \"10pt \" font-size= \"8pt \"> \n" );
567
567
fputs ($ fo_file , _ ("Diese Evaluation ist folgenden Bereichen zugeordnet: " ));
568
568
fputs ($ fo_file ," </fo:block> \n" );
569
569
foreach ($ eval_ranges_names as $ n ) {
570
570
fputs ($ fo_file ," <fo:block text-align= \"start \" margin-left= \"0.5cm \" line-height= \"10pt \" font-size= \"8pt \"> \n" );
571
- fputs ($ fo_file , htmlspecialchars ($ n ));
571
+ fputs ($ fo_file , htmlReady ($ n ));
572
572
fputs ($ fo_file ," </fo:block> \n" );
573
573
}
574
574
0 commit comments