Parse Html

  • Thread starter Thread starter Domenico Daraio
  • Start date Start date
D

Domenico Daraio

I'm a newbie! I'm sorry but I have a problem. I must parse an Html document
for a simple access to all tag.

There is a component that do it? How can do that? Any suggestion?

I'have an Idea but i think is not correct!

Thanks
Domenico
 
Hi Domenico,

You want to parse HTML to PlainText?

Public Function StripTags(ByVal HTML As String) As String
' Removes tags from passed HTML
Dim objRegEx As _
System.Text.RegularExpressions.Regex
Return objRegEx.Replace(HTML, "<[^>]*>", "")
End Function
Take a look to the following Links:

http://www.developerfusion.com/show/43/4/
http://www.vbarchiv.net/archiv/tipp_200.html
http://userpage.fu-berlin.de/~mbayer/tools/html2text.html
http://www.soft32.com/download_9905.html
http://www.jafsoft.com/detagger/


regards,

Michael
 
thanks.
What I have to porform is parsing HTML to Collection but not parsing HTML to
PlainText...

regards,

Domenico

Michael Gross said:
Hi Domenico,

You want to parse HTML to PlainText?

Public Function StripTags(ByVal HTML As String) As String
' Removes tags from passed HTML
Dim objRegEx As _
System.Text.RegularExpressions.Regex
Return objRegEx.Replace(HTML, "<[^>]*>", "")
End Function
Take a look to the following Links:

http://www.developerfusion.com/show/43/4/
http://www.vbarchiv.net/archiv/tipp_200.html
http://userpage.fu-berlin.de/~mbayer/tools/html2text.html
http://www.soft32.com/download_9905.html
http://www.jafsoft.com/detagger/


regards,

Michael


Domenico Daraio said:
I'm a newbie! I'm sorry but I have a problem. I must parse an Html document
for a simple access to all tag.

There is a component that do it? How can do that? Any suggestion?

I'have an Idea but i think is not correct!

Thanks
Domenico
 
Back
Top