check htmlToMoratab function