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

email graded essays sends HTML tags

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.4, 2.5
    • None
    • 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;

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rezeau Joseph Rézeau
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: