fixed xhm-html-to-text and also format changes