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

Exporting questionnaire to CSV format, some HTML tags appear

XMLWordPrintable

    • MOODLE_19_STABLE
    • MOODLE_19_STABLE, MOODLE_20_STABLE

      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

      > ?>
      ------

            mchurch Mike Churchward
            mchurch Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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