moved html2txt conversion code to Utils