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

Plain text essays mess up HTML special characters.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3.4, 2.4.1, 2.5
    • Fix Version/s: 2.3.5, 2.4.2
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Mar/13