Hi guys;
I got HTML code assigned to a variable.
Actually what I got into the variable is the whole HTML code for a web page.
I want to save that HTML code to disk, but not as HTML, I wan to save it as
text, I mean, I want to emulate the File / Save As in the Internet
Explorer, but instead of save it as HTML I want to save it as a text file,
saving only the "displayable content" of the HTML.
hope u understand cause I know I gave a messy explanation
Thanks 6 1041
One way is using MSHTML and parsing the html text for tags and their
values.
This might be less messy if you have a predifined and simple html format.
HTH
rawCoder
"MPR" <pe********@hotmail.com> wrote in message
news:O$***************@TK2MSFTNGP12.phx.gbl... Hi guys;
I got HTML code assigned to a variable. Actually what I got into the variable is the whole HTML code for a web
page. I want to save that HTML code to disk, but not as HTML, I wan to save it
as text, I mean, I want to emulate the File / Save As in the Internet Explorer, but instead of save it as HTML I want to save it as a text file, saving only the "displayable content" of the HTML.
hope u understand cause I know I gave a messy explanation
Thanks
MPR,
Same answer as Rawcoder from me, however for me is always the problem, what
are people meaning with the text from an HTML page, because that can be a
very big mess. (To overcome that was the reason to create HTML)
Can you make that maybe more clear to me, so than next time I do not have
that question again when answering this kind of questions?
Here a link to MSHTML http://msdn.microsoft.com/library/de...LDHTMLAPIs.asp
I hope this helps?
Cor
* "MPR" <pe********@hotmail.com> scripsit: I got HTML code assigned to a variable. Actually what I got into the variable is the whole HTML code for a web page.
I want to save that HTML code to disk, but not as HTML, I wan to save it as text, I mean, I want to emulate the File / Save As in the Internet Explorer, but instead of save it as HTML I want to save it as a text file, saving only the "displayable content" of the HTML.
<URL:http://groups.google.com/groups?selm=ebXm3efoCHA.1976%40TK2MSFTNGP10>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
> <URL:http://groups.google.com/groups?selm=ebXm3efoCHA.1976%40TK2MSFTNGP10>
Brrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
* "Cor Ligthert" <no**********@planet.nl> scripsit: <URL:http://groups.google.com/groups?selm=ebXm3efoCHA.1976%40TK2MSFTNGP10>
Brrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Great code, but very hard to understand.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
>Great code, but very hard to understand.
Use Mshtml, this is so from the content dependend code, it will never work
on as real page I make.
(However on that MSHTML will not work either)
:-)
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Charles Law |
last post by:
Does anyone have a regex pattern to parse HTML from a stream?
I have a well structured file, where each line is of the form
<sometag someattribute='attr'>text</sometag>
for example
<SPAN...
|
by: Brett |
last post by:
In Yahoo mail, I click the Inbox link and see my messages. If I view
source, I don't have HTML which contains the URL of each message. The
source HTML contains javascripting and framesets. This...
|
by: MB |
last post by:
Hello everyone!
These lines were inspired by the "DIV without line breaks" posted by
Johnny Two Dogs on June 22.
I know it is an old issue, but I want to share a few remarks that could
be of...
|
by: Philippe C. Martin |
last post by:
Hi,
I am trying to change the data in a form field from python. The following
code does not crash but has no effect as if "form" is just a copy of the
original html form.
Must I recreate the...
|
by: Patient Guy |
last post by:
Taking the BODY element as an example, all of its style attributes
('alink', 'vlink', 'background', 'text', etc.) are deprecated in HTML 4.01,
a fact noted in the DOM Level 2 HTML specification.
...
|
by: Hazzard |
last post by:
I just realized that the code I inherited is using all asp.net server
controls (ie. webform controls) and when I try to update textboxes on the
client side, I lose the new value of the textbox when...
|
by: Chris |
last post by:
Hello.
I had a question that I was hoping someone might be able
to answer.
I have an ASP .NET Web Form with a custom control that
generates HTML based on certain criteria.
This control is...
|
by: Vlady |
last post by:
Hello. I recently built an ASP.NET "financial" application. I got to the
point where I have a HTML template (a contract) which needs to be filled with
various data from the database. I put a...
|
by: Chris Fink |
last post by:
Does anyone know it is possible to include a small image(.gif .jpeg)
within a <SELECT><option> so that the user would see the option text as
well as a little image(icon) in the option? I know this...
|
by: thisis |
last post by:
Hi All,
i have this.asp page:
<script type="text/vbscript">
Function myFunc(val1ok, val2ok)
' do something ok
myFunc = " return something ok"
End Function
</script>
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |