In backend some characters are not shown correctly
As you can see from the pdf, linked up, to questions 11 and 23 the system defines the answer as wrong and it is not clear why.
From a careful analysis I noticed that in the backend some characters such as > does not interpret them and displays them with the html > notation, in fact in questions 11 and 23 there are the symbols >>.
Please can you help me?
Hi Giovanni,
I just pushed out an update to HD Quiz that should fix this for you. Note that I did NOT bump up the version number, so you will need to first deactivate and delete HD Quiz, then install again fresh (and remember to re-enable any addons too!).
Explanation
Your instincts were correct. > is a “coding symbol” which means that for security, entities like that are converted into their HTML character code entity so that they “display” instead of “run”.
The way that the Text Bases Answers works is by converting both the user submitted answer and all the correct answers in order to normalize them, then I run a simple compared function to see if the user submitted answer is the same as any of the correct answers.
The problem is that becuase of the HTML safe character encoding, the user types in > but HD Quiz only sees >.
The fix I made was actually a very creative solution from a Rob w since Javascripts’ native decodeURLComponent doesn’t decode all entities.
This thread has either been marked as complete or has been automatically closed due to inactivity. Please consider opening a new support thread for help.