Coder Social home page Coder Social logo

Single quote issues about h5p-flashcards HOT 5 OPEN

vincenzocasu avatar vincenzocasu commented on June 27, 2024
Single quote issues

from h5p-flashcards.

Comments (5)

falcon-git avatar falcon-git commented on June 27, 2024

Thank you for reporting! It seems you've run into a bug. We will fix this, but we won't be able to do it right away. If anyone else want's to fix this it probably has t do with H5P's security feature. We probably match an escaped version of the word with an unescaped version.

from h5p-flashcards.

vincenzocasu avatar vincenzocasu commented on June 27, 2024

Ok, but now what should i do to fix? I have seen that if i write the HTML
encoded sequence it match! For ' should be ' or something like this...
Thanks
Il 14/ott/2015 13:28, "Svein-Tore Griff With" [email protected] ha
scritto:

Thank you for reporting! It seems you've run into a bug. We will fix this,
but we won't be able to do it right away. If anyone else want's to fix this
it probably has t do with H5P's security feature. We probably match an
escaped version of the word with an unescaped version.


Reply to this email directly or view it on GitHub
#2 (comment).

from h5p-flashcards.

falcon-git avatar falcon-git commented on June 27, 2024

I don't think it will be easy for you to fix this, I think you'll have to
wait for a fixed code and avoid using single quote until we've fixed it :/

2015-10-14 17:28 GMT+02:00 realves [email protected]:

Ok, but now what should i do to fix? I have seen that if i write the HTML
encoded sequence it match! For ' should be ' or something like this...
Thanks
Il 14/ott/2015 13:28, "Svein-Tore Griff With" [email protected]
ha
scritto:

Thank you for reporting! It seems you've run into a bug. We will fix
this,
but we won't be able to do it right away. If anyone else want's to fix
this
it probably has t do with H5P's security feature. We probably match an
escaped version of the word with an unescaped version.


Reply to this email directly or view it on GitHub
#2 (comment).


Reply to this email directly or view it on GitHub
#2 (comment).

from h5p-flashcards.

vincenzocasu avatar vincenzocasu commented on June 27, 2024

Hi, I don't know if this is the best solution, but I have update your flashcards.js file with this code:

var userAnswer = H5P.trim($input.val()).toLowerCase();
userAnswer = userAnswer.replace("'", "'");

On line 156 and now it works!

from h5p-flashcards.

falcon-git avatar falcon-git commented on June 27, 2024

Great! (We will add a more generic version of that to the code - a version that handles all special charecters)

from h5p-flashcards.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.