@ -47,7 +47,7 @@ function showQuestion($questionId, $onlyAnswers = false, $origin = false, $curre
$questionName=$objQuestionTmp->selectTitle();
$questionDescription=$objQuestionTmp->selectDescription();
$questionName=api_parse_tex ($questionName);
$questionName=text_filter ($questionName);
$s="< div id = \"question_title\" class = \"sectiontitle\" >
".get_lang('Question').' ';
@ -63,7 +63,7 @@ function showQuestion($questionId, $onlyAnswers = false, $origin = false, $curre
$s='';
$s.="< table class = 'exercise_questions' style = 'margin:4px;padding:2px;' >
< tr > < td valign = 'top' colspan = '2' > ";
$questionDescription=api_parse_tex ($questionDescription);
$questionDescription=text_filter ($questionDescription);
$s.=$questionDescription;
$s.="< / td > < / tr > < / table > ";
@ -224,7 +224,7 @@ function showQuestion($questionId, $onlyAnswers = false, $origin = false, $curre
$selected = 'checked="checked"';
}
}
$answer = api_parse_tex ($answer);
$answer = text_filter ($answer);
$answer = Security::remove_XSS($answer, STUDENT);
$s .= '< input type = "hidden" name = "choice2['.$questionId.']" value = "0" / > '.
'< tr > < td colspan = "3" > < div class = "u-m-answer" > < p style = "float: '.($is_ltr_text_direction ? 'left' : 'right').'; padding-'.($is_ltr_text_direction ? 'right' : 'left').': 4px;" > '.
@ -244,7 +244,7 @@ function showQuestion($questionId, $onlyAnswers = false, $origin = false, $curre
$selected = 'checked="checked"';
}
}
$answer = api_parse_tex ($answer);
$answer = text_filter ($answer);
$answer = Security::remove_XSS($answer, STUDENT);
$s .= '< input type = "hidden" name = "choice2['.$questionId.']" value = "0" / > '.
'< tr > < td colspan = "3" > < div class = "u-m-answer" > < p style = "float: '.($is_ltr_text_direction ? 'left' : 'right').'; padding-'.($is_ltr_text_direction ? 'right' : 'left').': 4px;" > '.
@ -264,7 +264,7 @@ function showQuestion($questionId, $onlyAnswers = false, $origin = false, $curre
$selected = 'checked="checked"';
}
}
$answer = api_parse_tex ($answer);
$answer = text_filter ($answer);
$answer = Security::remove_XSS($answer, STUDENT);
$s .= '< input type = "hidden" name = "choice2['.$questionId.']" value = "0" / > '.
'< tr > < td colspan = "3" > < div class = "u-m-answer" > < p style = "float: '.($is_ltr_text_direction ? 'left' : 'right').'; padding-'.($is_ltr_text_direction ? 'right' : 'left').': 4px;" > '.
@ -284,7 +284,7 @@ function showQuestion($questionId, $onlyAnswers = false, $origin = false, $curre
// only show elements to be answered (not the contents of
// the select boxes, who are corrrect = 0)
$s .= '< tr > < td width = "45%" valign = "top" > ';
$parsed_answer = api_parse_tex ($answer);
$parsed_answer = text_filter ($answer);
//left part questions
$s .= ' < span style = "float:left; width:8%;" > < b > '.$lines_count.'< / b > . < / span >
< span style = "float:left; width:92%;" > '.$parsed_answer.'< / span > < / td > ';
@ -390,7 +390,7 @@ function showQuestion($questionId, $onlyAnswers = false, $origin = false, $curre
echo '< table class = "exercise_questions" >
< tr >
< td valign = "top" colspan = "2" > ';
echo $questionDescription=api_parse_tex ($questionDescription);
echo $questionDescription=text_filter ($questionDescription);
echo '< / td > < / tr > ';
}