fixed textToHTML and htmlToText