fixed parse errors in convert_html_to_text