title: how to delete nested <p> tag into other <p> tag but keeping the text into it. (HtmlAgilityPack)
body: <p>I am trying to format this input Html by using HtmlAgilityPack</p>
  
  <pre><code>&lt;p&gt;This is &lt;p&gt;a nested paragraph 1&lt;/p&gt;&lt;/p&gt;
  &lt;p&gt;This is &lt;p&gt;a nested paragraph 2&lt;/p&gt;&lt;/p&gt;
  </code></pre>
  
  <p>I want to obtain as result:</p>
  
  <pre><code>&lt;p&gt;This is a nested paragraph 1&lt;/p&gt;
  &lt;p&gt;This is a nested paragraph 2&lt;/p&gt;
  </code></pre>
  
  <p>deleting the nested paragraph tags.</p>
  
  <p>the next function deletes all p tags, but I want to preserve them in case they do not have nested p tags.</p>
  
  <pre><code>public void CleanNestedP()
  {
      var nodesP = HtmlDocument.DocumentNode.Descendants("p");    
      foreach (var item in nodesP.ToList())
      {
          var descendantsP = item.Descendants("p");
          if (descendantsP.Any())
          {
              var replacement = HtmlDocument.CreateTextNode(item.InnerText);
              item.ParentNode.ReplaceChild(replacement, item);
          }
      }
  } 
  </code></pre>
  
  <p>Any HtmlAgilityPack expert out there? thank you.</p>