Apostrophe in Fill-in-the-Blanks (FIB)

 I know that there are already a lot of posts on this forum regarding the apostrophe in FIB content type. When you’re pasting from Word in language other then English (in my case it’s French), there is always a problem with apostrophe in answers. Just to clarify, when you type in French in Word document, it’s a right single quotation mark [’], instead of basic apostrophe [']. H5P keeps apostrophe formatting (even after "Remove format" applied) and it’s transferred into database as [\u2019]. However, when you type answers into the blank, it will be always ['], despite the system language.

At this point I’ve found two solutions for this problem:

  1. Type your content directly into H5P (sometimes time consuming and not always obvious for everybody);
  2.  Use a SQL command to replace all instances of [’] (\u2019) to ['] (\u0027) in your database. Example for Wordpress:
    update wp_h5p_contents set parameters = replace(parameters,'\u2019','\u0027');
    update wp_h5p_contents set filtered = replace(filtered,'\u2019','\u0027');

Is it possible to automate this process? For example, all the [’] (\u2019) are replaced by ['] (\u0027) when you click on “Remove Format” button in H5P editor.
Maybe someone can share a better solution?


Fill in the Blanks apostrophe formatting
Content types: 
icc's picture

I believe this was an issue with the CKEditor: https://github.com/ckeditor/ckeditor5/issues/1474
and that it will go away when we update to the latest version.

Please let me know if I've misunderstood something.