Functions for help to converting html to docx