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]

Reply via email to