Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-1413

Exporting questionnaire to CSV format, some HTML tags appear

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.4, 2.0
    • Component/s: Module: Questionnaire
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      From Daniel Neis Araujo (http://moodle.org/mod/forum/discuss.php?d=127149)

      Hello there,

      i work on a project in Federal University of Santa Catarina, in Brazil, and some users noticed that when they exports questionnaire to CSV format, some HTML tags appear.

      The problem is on the format_text that is called and filters are applied. I've attached a patch that corrects this behaviour, calling format_text without filters...

      Hope you like.

      — patch —
      2380a2381
      > $format_options->filter=false;
      2662c2663
      < $thisresponse = format_text($thisresponse, FORMAT_HTML);

      > $thisresponse = format_text($thisresponse, FORMAT_HTML, $format_options);
      2989c2990
      < ?>
      \ No newline at end of file

      > ?>
      ------

        Attachments

          Activity

            People

            Assignee:
            mchurch Mike Churchward
            Reporter:
            mchurch Mike Churchward
            Participants:
            Component watchers:
            Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              28/Jan/09