CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: CHTMLView

  1. #1
    Guest

    CHTMLView

    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.


  2. #2
    Join Date
    May 1999
    Posts
    82

    Re: CHTMLView

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured