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

Plain text essays mess up HTML special characters.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.3.4, 2.4.1, 2.5
    • 2.3.5, 2.4.2
    • Questions
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • Hide

      1. Create an essay question that uses Plain text Response format.
      2. Preview the question, and input a response that includes HTML special characters. (See, for example https://moodle.org/mod/forum/discuss.php?d=220480#p963039.)
      3. Sumbit all and finish. Verify that the response has been saved and re-displayed correctly.

      4. Ideally verify the other three response format also still work.

      Show
      1. Create an essay question that uses Plain text Response format. 2. Preview the question, and input a response that includes HTML special characters. (See, for example https://moodle.org/mod/forum/discuss.php?d=220480#p963039 .) 3. Sumbit all and finish. Verify that the response has been saved and re-displayed correctly. 4. Ideally verify the other three response format also still work.

    Description

      Steps to reproduce:

      1. Create an essay question where the response format is 'Plain text', not 'HTML editor'.

      2. Preview the question using deferred feedback, and enter a response like:

      Here <is> some junk</is>:

      x < 1

      3. Submit all and finish.

      Expected result:

      The question is shown in review mode, with the student's answer clearly visible.

      Actual result:

      The review shows

      Here some junk:

      x < 1

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Frédéric Massart Frédéric Massart
              Safat Shahin, Tim Hunt, Amaia Anabitarte, Bas Brands, 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:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Mar/13