Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-12572

Quiz downloaded reports contain html markup

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.3
    • 2.0
    • Quiz
    • None
    • Any
    • MOODLE_18_STABLE
    • MOODLE_20_STABLE

    Description

      To reproduce (in 1.8.3 and 1.9, probably earlier versions as well):

      Create a quiz with essay questions.
      Log in as a student, take the quiz, apply some formatting to the essay answer in the html editor, and submit.
      As a teacher, go to the Item Analysis tab and download the report (any format).

      The student response in the downloaded report will contain html markup. Some of the column headers also contain <br /> tags, and question names and text can contain markup as well. This makes the downloaded reports difficult for faculty to analyze.

      When downloading reports, the html should first be converted to text. A patch is attached (1.9).

      Note that the same issue exists with the Detailed Responses plugin. I'll file a separate report for that one.

      Attachments

        1. example_output_excel.xls
          120 kB
        2. example_output.doc
          699 kB
        3. quizreport.patch
          2 kB

        Issue Links

          Activity

            People

              jamiesensei Jamie Pratt
              adamann2 Ann Adamcik
              Nobody Nobody
              Tim Hunt, Amaia Anabitarte, Brett Dalton, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10