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

Embedded answers formatting in the history of responses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Component/s: Questions, Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      Steps to reproduce:

      1. Prepare a question of type "Embedded answers" containing some SHORTANSWER and NUMERICAL subquestions
      2. Put the question into a quiz, log in as student and attempt the quiz
      3. Into the input fields, put a text containing some HTML code (tested with <b>two</b> and <i>2</i>)
      4. Submit the attempt, log in as a teacher and review the attempt

      Expected behaviour:
      In the table "History of responses", the teacher shoudl see exactly what the student typed, that is "<b>two</b>" and "<i>2</i>"

      What actually happens:
      html_to_text() is used and the teacher sees "TWO" and "2"

      Suggestion:
      To be consistent with the plain shortanswer qtype, format_answer() should use plain s() without html_to_text() for oneline input fields

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: