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

Remove Escape Characters From Feedback #90

Open
HelloLudger opened this issue Aug 20, 2022 · 1 comment
Open

Remove Escape Characters From Feedback #90

HelloLudger opened this issue Aug 20, 2022 · 1 comment

Comments

@HelloLudger
Copy link

Question text: [\(A\)|B]
Input: anything wrong, e.g. A

Result:
image

Desired Result:
image

Solution

Add

            /* replace escape chars */
            $rightanswerdisplay = preg_replace("/([\\\])([^\\\])/", "$2", $rightanswerdisplay);

before

$question = $qa->get_question();

@HelloLudger HelloLudger changed the title Remove Brackets And Escape Character From Feedback Remove Escape Characters From Feedback Aug 20, 2022
@marcusgreen
Copy link
Owner

My apologies for the delay in responding to this. Could you attach an xml export of a question showing this issue. I was unable to reproduce it myself, but I may have missed something out.

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