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:
- Type your content directly into H5P (sometimes time consuming and not always obvious for everybody);
- 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?