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

Embedded answers formatting in the history of responses

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.0.2
    • None
    • Questions, Quiz
    • None
    • 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

              timhunt Tim Hunt
              mudrd8mz David Mudrák (@mudrd8mz)
              Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Lyons, 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: