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

properly handle characters for JSON parsing (runtime) #268

Closed
abirEF opened this issue Apr 8, 2024 · 3 comments
Closed

properly handle characters for JSON parsing (runtime) #268

abirEF opened this issue Apr 8, 2024 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@abirEF
Copy link
Collaborator

abirEF commented Apr 8, 2024

modify this code line that can provoke JSON parsing error
var decodedData = $('<textarea />').html(JSON.stringify(jsonContent.data)).text(); // MBG : find a better method

@abirEF abirEF added the bug Something isn't working label Apr 8, 2024
@abirEF abirEF self-assigned this Apr 8, 2024
bengaid added a commit that referenced this issue Apr 8, 2024
fix bug in properly handling characters for JSON parsing #268
@bengaid bengaid added this to the version_0.5 milestone Apr 8, 2024
@bengaid
Copy link
Member

bengaid commented Apr 10, 2024

Thanks Abir, it is indeed a better method

@bengaid bengaid closed this as completed Apr 10, 2024
@abirEF abirEF reopened this May 23, 2024
@abirEF
Copy link
Collaborator Author

abirEF commented May 23, 2024

We need to ensure that HTML entities within the json data are properly decoded (for rendering HTML elements and function calls) and also to ensure handling properly characters for JSON parsing (prevents JSON parsing errors)

@bengaid
Copy link
Member

bengaid commented May 23, 2024

Thanks Abir, all other issue fixed

@bengaid bengaid closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants