Re: extract text from html
- From: "Roger" <roger@xxxxxxxxxxx>
- Date: Thu, 15 Dec 2005 12:46:19 +1100
Excellent solutions.
Thanx.
"m.posseth" <michelp@xxxxxxxxxxxxxxx> wrote in message
news:OjIYCIIAGHA.272@xxxxxxxxxxxxxxxxxxxxxxx
> Patrick ,
>
> if you mean your Goal is just simply removing the HTML tags from a string
>
> i made a function for this purpose with some Regex
>
> Private Function stripHTML(ByVal strHTML) As String
>
> Dim objRegExp As New System.Text.RegularExpressions.Regex("<(.|\n)+?>")
>
> Return objRegExp.Replace(strHTML, "")
>
> End Function
>
> i use this in a winforms app that stripes websites for valuable
> information with a webclient
>
>
>
> hth
>
>
>
> Michel Posseth [MCP]
>
>
> "Patrick" <praft@xxxxxxxxx> wrote in message
> news:%23UkeVbv$FHA.1600@xxxxxxxxxxxxxxxxxxxxxxx
>> I've got some text with a few HTML tags, such as the following
>> <Bold>Hello</Bold>There buddy<p>please .....
>>
>> I need to be able to extract just the text, which would be
>> Hello there buddy please....
>>
>> Note, this is a Windows App, and not a Web App.
>> Any ideas anyone?
>>
>
>
.
- References:
- extract text from html
- From: Patrick
- Re: extract text from html
- From: m.posseth
- extract text from html
- Prev by Date: Emulating a joystick
- Next by Date: Bandwidth monitor
- Previous by thread: Re: extract text from html
- Next by thread: Sqlconnection does it work with MS Access database
- Index(es):
Relevant Pages
|