Forg/app/helpers/mailer_helper.rb

7 lines
140 B
Ruby
Raw Normal View History

2024-04-14 19:01:32 +00:00
module MailerHelper
def htmlify_email(content)
content.gsub!("\n\n", "</p>\n\n<p>")
"<p>#{content.chomp}</p>".html_safe
end
end