Skip to content

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

Description

@MaiklT

Describe the bug

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

Software Versions

  • DNN: xx.xx.xx
  • Module: 09.00.01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions