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

Feedback textarea export converts newlines to html br

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.7.1
    • Feedback
    • MOODLE_27_STABLE

      When exporting data from a textarea question it converts newlines to html br which display in plain text in excel - br is not converted to a newline in excel text fields.

      Also - in some cases this conversion also corrupts the data further and replaces a new line with the following:

      _X000D_<br />
      

      Unfortunately I can't reproduce this reliably and it seems to be related to the way a user actually generates the original content.

      I wonder if this function was previously used to output data to the screen and not just output data to excel which is why it converted the newlines to br but it would be good if someone else could confirm this.

            Unassigned Unassigned
            danmarsden Dan Marsden
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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