title: I can't parse this html code using C# agility pack
body: <p>I've been trying to parse this code for a very long time:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;body class=&quot;detailpage&quot;&gt;
      &lt;div id=&quot;innerLayout&quot;&gt;
          &lt;section id=&quot;body-container&quot;&gt;
              &lt;div class=&quot;wrapper&quot;&gt;
                  &lt;div class=&quot;content&quot; id=&quot;offer_active&quot;&gt;
                      &lt;div class=&quot;clr offerbody&quot;&gt;
                          &lt;div class=&quot;offercontent fleft rel &quot;&gt;
                              &lt;div class=&quot;offercontentinner&quot;&gt;
                                  &lt;script&gt;
                                      texto = {&quot;name&quot;:&quot;John&quot;};
                                  &lt;/script&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/section&gt;
          
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>I prefer using AgilityPack, and I want to get <code>&quot;name&quot; : &quot;John&quot;</code> as a result, but I have not been successful.</p>
  <p>This is my attempt:</p>
  <pre class="lang-cs prettyprint-override"><code>string stringThatKeepsYourHtml = @&quot;&lt;!DOCTYPE html&gt; &lt;head&gt; &lt;title&gt;Title&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div id=&quot;&quot;myId&quot;&quot; class=&quot;&quot;myClass&quot;&quot;&gt; &lt;div class=&quot;&quot;myClass&quot;&quot;&gt;hello&lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;&quot;; 
  HtmlDocument doc = new HtmlDocument();
  doc.LoadHtml(stringThatKeepsYourHtml); 
  string whatUrLookingFor = doc.DocumentNode.
      SelectNodes(&quot;//div&quot;).
      First().
      SelectNodes(&quot;//div&quot;).
      First().
      InnerText; 
  Console.WriteLine(whatUrLookingFor); 
  Console.ReadKey(true);
  </code></pre>
  <p>How can I get this working?</p>