By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,649 Members | 1,863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,649 IT Pros & Developers. It's quick & easy.

HTML text filters, display control, utilities

P: n/a
Does anyone have a pointer to code for:

1 Filtering text from html? (removing html tags, etc)

2 Displaying HTML in a windows form

or any other useful utilities for dealing with raw HTML.

Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

Displaying HTML In a Windows form - the easiest way is to use the Web
Browser control. Filtering text from XML is a bit trickier, but if you are
using the Web Browser control you can use the innerText property to get all
the text stripped off the tags returned. Not that that is terribly usful in
anything but the simplest HTML forms.
+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"_eee_" <_n****@nomail.com> wrote in message
news:g2********************************@4ax.com...
Does anyone have a pointer to code for:

1 Filtering text from html? (removing html tags, etc)

2 Displaying HTML in a windows form

or any other useful utilities for dealing with raw HTML.

Nov 18 '05 #2

P: n/a
On Fri, 27 Feb 2004 18:50:32 -1000, "Rick Strahl [MVP]"
<ri********@hotmail.com> wrote:

Displaying HTML In a Windows form - the easiest way is to use the Web
Browser control. Filtering text from XML is a bit trickier, but if you are
using the Web Browser control you can use the innerText property to get all
the text stripped off the tags returned. Not that that is terribly usful in
anything but the simplest HTML forms.

+++ Rick ---


Thanks, Rick. I had used that control before, but with MFC. That
project sent the browser to web-based URL's.

I didn't realize it could decode/display an in-memory html string.
Have you done this before? I didn't see calls for that. (Doesn't mean
that they aren't there)
Nov 18 '05 #3

P: n/a
You can use the WebBrowser control to use local file Urls or if you have to
setting it via the MSHTML DOM (which requires a nother import)... However, I
would use files rather than DOM methods as you have more control over the
document (ie. you can get the headers in there which can't be done with an
already loaded document).

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"_eee_" <_n****@nomail.com> wrote in message
news:1d********************************@4ax.com...
On Fri, 27 Feb 2004 18:50:32 -1000, "Rick Strahl [MVP]"
<ri********@hotmail.com> wrote:

Displaying HTML In a Windows form - the easiest way is to use the Web
Browser control. Filtering text from XML is a bit trickier, but if you areusing the Web Browser control you can use the innerText property to get allthe text stripped off the tags returned. Not that that is terribly usful inanything but the simplest HTML forms.

+++ Rick ---


Thanks, Rick. I had used that control before, but with MFC. That
project sent the browser to web-based URL's.

I didn't realize it could decode/display an in-memory html string.
Have you done this before? I didn't see calls for that. (Doesn't mean
that they aren't there)

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.