[help] How to get only printable string of any webpage
Hello everyone :wave:
I want to know how to get the printable texts only of any webpage in Vb6? I am using webbrowser control.
I am using the following code to get html source
Code:
wb1.Document.documentElement.OuterHTML
this code is working fine but it is showing the complete source code with Html <> tags. I want to get only the texts which webpage displays on browser.. In browser it doesn't shows Html tags..
I hope you are understanding what i am asking for..
Another thing is I don't know the tag or element name of the webpage, means that can be any webpage.
:sick:
Any help on this topic please?
Thanks
Regards,
Re: [help] How to get only printable string of any webpage
Quote:
Originally Posted by
green.pitch
Hello everyone :wave:
I want to know how to get the printable texts only of any webpage in Vb6? I am using webbrowser control.
I am using the following code to get html source
Code:
wb1.Document.documentElement.OuterHTML
this code is working fine but it is showing the complete source code with Html <> tags. I want to get only the texts which webpage displays on browser.. In browser it doesn't shows Html tags..
I hope you are understanding what i am asking for..
Another thing is I don't know the tag or element name of the webpage, means that can be any webpage.
:sick:
Any help on this topic please?
Thanks
Regards,
Just parse the string < > are the delimiters . Outside that is text , but not all the text . Some tags also can have text as parameter
Re: [help] How to get only printable string of any webpage
Quote:
Originally Posted by
flyguille
Just parse the string < > are the delimiters . Outside that is text , but not all the text . Some tags also can have text as parameter
Thanks, but query has been solved by just replacing
Code:
wb1.Document.documentElement.OuterHTML
with
Code:
wb1.Document.documentElement.OuterText
Regards :wave:
Re: [help] How to get only printable string of any webpage
Quote:
Originally Posted by
green.pitch
Thanks, but query has been solved by just replacing
Code:
wb1.Document.documentElement.OuterHTML
with
Code:
wb1.Document.documentElement.OuterText
Regards :wave:
you are using a webbrowsing component from M$?, be warned about HTML5 exists.
Re: [help] How to get only printable string of any webpage
Hi,
If you read the topic carefully, you will come to know that I'v already told above that i am using webbrowser control..
Regards, :)