That should work if you want to remove all HTML.  If you want to be more
selective, there's a UDF called StripTags by S. Isaac Dealey at
http://www.cflib.org
that is supposed to be pretty good.

--Ben Doom

[EMAIL PROTECTED] wrote:
> Hi Neal,
>
> Try:
>
> ReReplace(Form.CalloutComments,"<[^>]*>"," ","ALL")
>
> Where 'Form.CalloutComments' is your string. Pretty simplistic, but it
> works. I'm sure someone will come up with something else..!
>
> -----Original Message-----
> From: Bailey, Neal [mailto:[EMAIL PROTECTED]
> Sent: 01 March 2004 5:40 pm
> To: CF-Talk
> Subject: Strip HTML from String
>
> Hello everyone...
>
>
> I saw a while back that someone either posted a snippet or a link to a tag
> somewhere that would strip out HTML tags from a string. I tried looking
> though my e-mail but cant seem to find it, also tried looking on a few
> exchanges but they did not do what I needed.
>
>
> Basically if I have a string that looks like this:
>
>
> ....code to strip....
> <body>
> Here is some <font face="Arial, Helvetica, sans-serif">sample</font> test
> with a <a href=""> > </body>
> ....end....
>
>
> ....output of striped code....
> Here is some sample test with a link.
> ....end....
>
>
> Thanks for any help...
>
>
> Neal Bailey
> Internet Marketing Manager
> E-mail:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to