Well OK....I'll come in with the unpopular vote then....DON'T STRIP
HTML!

Here is why.....

I have always found that the text you are left with will NOT look nice
to the person receiving it.  So by doing it the way I suggested, you can
customize the plain text (like all caps heading instead of a bold
underlined one via HTML).  So for reasons like that, blindly removing
tags just doesn't cut it in my books.

my 2 cents

Cheers



On Thu, 2011-08-04 at 14:28 -0500, Greg Morphis wrote:

> I looked at that, I want to control the email flow.
> If they choose to receive text only then I want to send a text only email
> stripped of html..
> 
> I've looked at this
> http://stackoverflow.com/questions/4550583/whats-the-best-way-to-remove-html-from-a-string
>  but I'm not sure this is the way I want to go so I'm asking you all :)
> 
> On Thu, Aug 4, 2011 at 2:25 PM, Bryan Stevenson <
> [email protected]> wrote:
> 
> >
> > Why yes there is....they are called multipart e-mails....have a look at
> > CFMAILPART (or something to that effect).
> >
> > It allows you to send one e-mail with both a plain text and HTML
> > portion.....then it's up to receiver's mail client to display what the
> > user wants to see ;-0
> >
> > HTH
> >
> > Cheers
> >
> > On Thu, 2011-08-04 at 14:11 -0500, Greg Morphis wrote:
> >
> > > I'm giving users a choice of email type, html or plain.
> > > Is there a way of getting around having 2 different emails, one for html
> > > content and one stripped of tags?
> > >
> > >
> > >
> >
> > 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346540
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to