Skip to content

Changed parsons.block.php to resolve issue #1756#1761

Open
jonaslache wants to merge 1 commit into
maths:devfrom
jonaslache:dev
Open

Changed parsons.block.php to resolve issue #1756#1761
jonaslache wants to merge 1 commit into
maths:devfrom
jonaslache:dev

Conversation

@jonaslache
Copy link
Copy Markdown
Contributor

Hello everyone,

I tried to resolve issue #1756 by using json_encode(stack_string('...'), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) instead of just stack_string('...'). This should escape all kinds of quotation marks correctly. I tested this with both the default English language strings and with German language strings that include double quotation marks. Could someone please review this? Please let me know if I have made any mistakes (including any conventions I was not aware of).

Thanks and best regards,
Jonas

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

Successfully merging this pull request may close these issues.

1 participant