Replaced html2text with Nokogiri for text conversion