getHtml()
method doesn't return the exact same HTML for the same document on different platforms (Windows, Mac, Word on the web, etc.). If you need exact fidelity, or consistency across platforms, use Range.getOoxml()
and convert the returned XML to HTML.
So question is how can I convert this Ooxml to html? using javascript
there are no method to convert html to Ooxml in JavaScript.