DNNCommunity / DNN.Survey

MIT License
7 stars 8 forks source link

Charts don't display when a double quote was entered in a free text response #48

Closed MaiklT closed 3 years ago

MaiklT commented 4 years ago

Describe the bug

When a double quote is entered in a free text response, the Javascript to display the chart fails.

Software Versions

To Reproduce

Steps to reproduce the behavior:

  1. Add a free trext response to a survey
  2. Add answers, use a double quote somewhere in the free text response
  3. Show results
  4. No charts are displayed

Expected behavior

Charts should display.

Error log

Javascript console: Uncaught SyntaxError: Unexpected identifier

Additional context

Workaround: replace the double quotes in the database by single quotes

MaiklT commented 4 years ago

Same for line breaks.

valadas commented 3 years ago

Fixed in shortly upcoming 9.1.0