Given the html email message, is there any way to convert it to a text version? I do e-mail and notice that sometimes emails do not include the text version, especially with Blackberry devices.
thank
Maybe something is missing for me, but you could not just take the HTML message and run ActionView::Helpers::SanitizeHelper#strip_tagsover it?
ActionView::Helpers::SanitizeHelper#strip_tags
http://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-strip_tags
HTML to Text - , Premailer gem.
premailer = Premailer.new('http://example.com/html_email.html') premailer.to_plain_text
, , ,
, , Google " html ". :
:
Ruby HTML - . .
http://www.chipstips.com/?p=610
http://edgeguides.rubyonrails.org/action_mailer_basics.html
html ........