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

email graded essays sends HTML tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.4.4, 2.5
    • Lesson
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • Hide

      For Moodle 2.4, in file yourmoodle/mod/lesson/essay.php, change line 218 from

      $a->response = s($essayinfo->answer);
      

      to

      $a->response = $essayinfo->answer;
      

      Show
      For Moodle 2.4, in file yourmoodle/mod/lesson/essay.php, change line 218 from $a->response = s($essayinfo->answer); to $a->response = $essayinfo->answer;

      When a Lesson Essay contains HTML formatting, there are 2 problems.
      1.- When teacher reviews the essay to grade it, it appears as plain text, not HTML formatted.
      2.- When teacher emails graded essays, the HTML is sent with tags, which ruins the display in the email.

      See https://moodle.org/mod/forum/discuss.php?d=218568

            Unassigned Unassigned
            rezeau Joseph Rézeau
            Votes:
            1 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.