Re: remove HTML from variables by Rafael
Rafael
Fri Apr 08 03:32:25 CDT 2005
Rafael,
Here is something that migght help,
set objRE = new RegExp
dim sTag
objRE.Pattern="<\S[^>]*>"
objRE.Global=true
'html tags in a variable
sTag="<html><head><title>Title page here</title></head><body>Page content
here</body></html>"
'clean
sTag=objRE.Replace(sTag,"")
'show
msgbox sTag
set objRE=nothing
RT
"Rafael Chemtob" <rchemtobb@nospam.yahoo.com> wrote in message
news:umbDoLsOFHA.3928@TK2MSFTNGP09.phx.gbl...
> Hi,
> is there a function to clean a variable of HTML tags.
> this variable is being sent from a database call.
> please advise
>
>