When viewing an Item Analysis report of a quiz with multiple choice questions that have LaTeX formatting in the answers, extra duplicate answers appear in the report table. This seems to be because the answer comparison in the Item Analysis report expects plain text answers from get_actual_response in each questiontype class file. The get_actual_response function in the question_multichoice_qtype class returns a formatted response. This change was introduced in
MDL-8349 to filter the LaTeX in answers shown in the summary. This patch will format the questions as before, but the formatting was moved to response_summary where it is needed and not in get_actual_response where a plain text response is needed. The filter still shows LaTeX in this summary as escaped html which is how they were showing up before this patch.