When I do a insertHtml("’"); the word document shows ’ instead of ’
This is a common problem in web programming as ’ isn’t a valid entity in HTML but it is in XHTML.
In my opinion insertHtml should replace ’ by ‘.
Doing a simple replaceAll in my html string textHTML.replaceAll("’", “’”); solves the issue.