Click to See Complete Forum and Search --> : CHTMLView


May 14th, 1999, 05:36 PM
Is there a way to extract only text data from CHTMLView, i.e no HTML tags. Even if the format is going to be messed up it is OK.

Dan Haddix
May 15th, 1999, 01:03 AM
OK I have absolutly no clue as to how CHtmlView works, but I do know that it uses IE and IE's DOM. So if you can figure out how to access it you should be able to use the innerText property. For example in JavaScript you would simply use

allText = document.body.innerText;

This would return all the text in the document excluding any HTML markup. Hope this helps.