refixed to give preference to HTML than text, so that if html is returned used HTML instead of text, IE fixes