Visual Studio Development Bookmark and Share   
 index > Visual C# Express Edition > WebBrowser control and uppercase HTML tags
 

WebBrowser control and uppercase HTML tags

Hi,

I am using WebBrowser control to place a simple HTML editor in my application. The source HTML is XHTML compliant. The problem is that every HTML tag that gets extracted from the WebBrowser control gets changed to uppercase. In addition, the <TBODY> tag automatically gets inserted into the HTML. This HTML code is part of a larger document that must be validated against XHTML which means all tags must be lowercase and certain tags are invalid (such as TBODY).

Is there a way to set WebBrowser control to leave the source HTML casing unchanged?

Or does anyone know of a 'converter' that could defeat the WebBrowser's attempt to take over the world? Would TidyHTML work?
rbeddoe  Wednesday, October 07, 2009 1:58 AM
Okay. After some digging (this always happens) I TidyHTML has proved to be the answer. 'nuff said.

If anyone's curious, just use teh google. Took care of most of my problems. Now if it would just learn how to change the cat litter.
  • Marked As Answer byrbeddoe Wednesday, October 07, 2009 5:36 PM
  •  
rbeddoe  Wednesday, October 07, 2009 5:36 PM
Okay. After some digging (this always happens) I TidyHTML has proved to be the answer. 'nuff said.

If anyone's curious, just use teh google. Took care of most of my problems. Now if it would just learn how to change the cat litter.
  • Marked As Answer byrbeddoe Wednesday, October 07, 2009 5:36 PM
  •  
rbeddoe  Wednesday, October 07, 2009 5:36 PM

You can use google to search for other answers

Custom Search

More Threads

• Check out the e-book DOTNETZERO11.pdf
• excel commands with c#
• Visual Styles on a form?
• Overwriting a file question?
• Windows Installer files?
• Messaging (Chat) system
• How do restructure the directories to make team distribution easy
• Single Quotes Escape
• Timezoneinfo in C#.net
• difference between dlinq and blinq