Ben doesn't use my functions because he's too good with regex to need
them. heh :)
> 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]
s. isaac dealey 214.823.9345
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://www.turnkey.to/ontap
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

