How do I stop the WebBrowser control evaluating special characters?
- From: "John Mann" <jmann@xxxxxxxxxx>
- Date: Mon, 11 Dec 2006 12:37:46 -0000
This is a question about the Microsoft Web Browser control. I have version 7
of IE, the project references c:\windows\system32\ieframe.dll, which has the
following details:
File version: 7.0.5730.11
Created 17 Oct 2006 12:33:42
I am developing with VB 6 but I assume the control behaviour is the same
whatever.
I thought this line would get me the HTML from the document currently loaded
into a browser:
WebBrowser1.Document.documentElement.outerHTML
*but* here is my original HTML:
<html>
<body>
[Body]
<hr>
look at these characters © and ®
<hr>
trademark = ™ = ™ (or ™ ) <br />
registered trademark = ® = ® <br />
service mark = ℠ = ℠ <br />
copyright = © = © <br />
sound recording copyright = ℗ = ℗ <br />
</body>
</html>
and this is what I get back from the control:
print WebBrowser1.Document.documentElement.outerHTML
<HTML><HEAD></HEAD>
<BODY>[Body]
<HR>
look at these characters © and ®
<HR>
trademark = T = T (or T ) <BR>registered trademark = ® = ® <BR>service mark
= ? = ? <BR>copyright = © = © <BR>sound recording copyright = ? = ?
<BR></BODY></HTML>
How can I stop it evaluating the special characters?
.
- Prev by Date: WebBrowser Control Locks Files
- Next by Date: Question about the Internet Transfer Control (Version 6)
- Previous by thread: WebBrowser Control Locks Files
- Next by thread: Question about the Internet Transfer Control (Version 6)
- Index(es):
Relevant Pages
|