Given an html email message, is there a way to convert that to a text version? I’m doing email ingestion and notice that some times an email doesn’t include a text version, especially with blackberry devices.
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Perhaps I’m missing something, but couldn’t you just take the HTML message and run
ActionView::Helpers::SanitizeHelper#strip_tagsover it?http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-strip_tags