Strip out RedCloth markup?
Cayce Balara
lists at ruby-forum.com
Wed Apr 23 22:08:22 EDT 2008
The site I'm working on has a batch email function and I'd like the user
to be able to user Textile for creating their HTML formatted email.
However, I've set up action mailer to do multipart emails in case
recipient is on a plain text client. So, for the HTML mailer template I
use the .to_html output for the body text, and for the plain text mailer
template I want to strip out the markup.
Right now I'm just sending through the marked up text, which isn't
horrible if you keep it simple, but links, for instance, really come
through badly.
Thanks for the input.
--
Posted via http://www.ruby-forum.com/.
More information about the Redcloth-upwards
mailing list