tabletop-companion/app/helpers/mailer_helper.rb

7 lines
140 B
Ruby

module MailerHelper
def htmlify_email(content)
content.gsub!("\n\n", "</p>\n\n<p>")
"<p>#{content.chomp}</p>".html_safe
end
end