parser someone has worked on that undestands paired <P> tags and <br> tags
and can clean up whats left after the replacements so that there is
attractive paragraphs left over. Remember that raw HTML doesn't care about
whitesapce.
Thanks,
Jon
-----Original Message-----
From: Tom Kitta [mailto:[EMAIL PROTECTED]
Sent: Friday, January 02, 2004 1:52 PM
To: CF-Talk
Subject: Re: Suggestion needed - UDF for converting HTML to CRLF formatted
plain text?
On CFMX you can use this regular _expression_ to strip all tags:
REReplaceNoCase(your_string,"<(.+?)>","","ALL").
TK
----- Original Message -----
From: Joe Eugene
To: CF-Talk
Sent: Thursday, December 18, 2003 1:38 PM
Subject: Re: Suggestion needed - UDF for converting HTML to CRLF
formatted plain text?
You can pass the text into the UDF and Search & Replace all the
necessary characrter and count
the no of characters and insert "\n" or "\r" where its required.
HTH
Joe Eugene
----- Original Message -----
From: Jon Block
To: CF-Talk
Sent: Thursday, December 18, 2003 10:11 AM
Subject: Suggestion needed - UDF for converting HTML to CRLF formatted
plain text?
Here's a question... I'm working on a database where the user may
store
content with HTML <p> tags and some <br> tags too. I want the abilty
to send
this content in a plain text mail message and still have it look okay.
I
think I would need a UDF to not only strip out the <p></p> and <br>
tags,
but to add the appropriate CRLF's.
Anybody have any suggestions for me?
Thanks,
Jon
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

