Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using less than character (<) causes JSON encoding problem #4

Closed
sdgluck opened this issue Nov 14, 2018 · 1 comment
Closed

Using less than character (<) causes JSON encoding problem #4

sdgluck opened this issue Nov 14, 2018 · 1 comment

Comments

@sdgluck
Copy link
Contributor

sdgluck commented Nov 14, 2018

Are you requesting a feature, reporting a bug or asking a question?

bug

What is the current behavior?

When using the less than character in any of the input fields when configuring a survey the JSON becomes malformed as the character is wrongly encoded as an HTML entity.

What is the expected behavior?

You can use a less than or greater than character.

How would you reproduce the current behavior (if this is a bug)?

We encountered this using the WordPress SurveyJS plugin.

Provide the test code and the tested page URL (if applicable)

Sorry, don't have any repro at the moment.

Specify your

  • browser: Chrome
  • browser version: 70
  • surveyjs platform (angular or react or jquery or knockout or vue): WordPress (Knockout?)
  • surveyjs version: SurveyJS version: whatever version the WP plugin uses
  • WP plugin version: 1.0.33
@dmitry-kurmanov dmitry-kurmanov transferred this issue from surveyjs/survey-library Nov 14, 2018
@dmitry-kurmanov
Copy link
Member

We've fixed the issue (used http://php.net/manual/ru/function.htmlspecialchars-decode.php). Could you please download the latest version of plugin an trying it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants