title: Using XPath to get text of paragraph with links inside
body: <p>I'm parsing HTML page with XPath and want to grab whole text of some specific paragraph, including text of links.</p>
  
  <p>For example I have following paragraph:</p>
  
  <pre><code>&lt;p class="main-content"&gt;
      This is sample paragraph with &lt;a href="http://google.com"&gt;link&lt;/a&gt; inside.
  &lt;/p&gt;
  </code></pre>
  
  <p>I need to get following text as result: "This is sample paragraph with link inside", however applying <code>"//p[@class'main-content']/text()"</code> gives me only "This is sample paragraph with  inside". </p>
  
  <p>Could you please assist? Thanks.</p>