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

HTML entity non-breaking space crashes multianswer question

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 1.6
    • Questions
    • None
    • All
    • MOODLE_16_STABLE

      HTML entity non-breaking space crashes multianswer question. Diagnostic:

      in file questiontypemultianswerquestiontype.php, towards the end, function multianswer_escape($text)

      If the text of a multianswer question contains a non-breaking space entity & nbsp;, it causes a problem when going through line: $text = html_entity_decode($text); -> All the text that follows the & nbsp; entity is deleted from the multianswer question.

      If this line is removed, everything is OK.

      What is the use of html_entity_decode($text) anyway???

      Joseph

            timhunt Tim Hunt
            rezeau Joseph Rézeau
            Nobody Nobody (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.