The '"' character, hexadecimal value 0x22, cannot be included in a name.

Aug 16, 2014 at 1:04 AM
Hello,
at this line:
Dim NewHTMLString As String = XDocument.Parse(htmldoc.DocumentNode.OuterHtml).ToString()
I get this error
The '"' character, hexadecimal value 0x22, cannot be included in a name.
The line in the html it's having difficulties with is this:
if ( typeof JSON != 'object' || !JSON.stringify || !JSON.parse ) { document.write( "<scr" + "ipt type=\"text\/javascript\" src=\"http:\/\/blahblah"><\/script>\n" ); };
What can I do to fix it?