MDL-41665 scorm : Rewriting using html_writer