title: HTML Agility Pack Conversion to XML <script> corruption
body: <p>I've got an HTML file with a <code>&lt;script&gt;</code> in it:</p>
  
  <pre><code>&lt;html&gt;
     &lt;script type="application/custom+xml"&gt;
     &lt;my&gt;&lt;xml&gt;&lt;goes&gt;&lt;here/&gt;&lt;/goes&gt;&lt;/xml&gt;&lt;/my&gt;
     &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I parse it with HTML Agility Pack and then convert it to XML.</p>
  
  <pre><code>HtmlDocument html;
  html.OptionOutputAsXml = true;
  html.Save(stream);
  ...
  XDocument xml = XDocument.Load(stream);
  </code></pre>
  
  <p>I then want to use LINQ-to-XML to look at the contents of the <code>script</code> tag which should contain my XML as CDATA. But HTML Agility Pack messes it up somehow and I end up with this escaped XML:</p>
  
  <pre><code>&lt;html&gt;
  &lt;script type="application/custom+xml"&gt;
  //&lt;![CDATA[
  &amp;lt;my&amp;gt;&amp;lt;xml&amp;gt;&amp;lt;goes&amp;gt;&amp;lt;here/&amp;gt;&amp;lt;/goes&amp;gt;&amp;lt;/xml&amp;gt;&amp;lt;/my&amp;gt;
  //]]&gt;//
  &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Does anyone know how I can tell HTML Agility Pack not to escape the contents of the <code>script</code> tag?</p>