title: How to get the html source of a specific element with selenium?
body: <p>The page I'm looking at contains :</p>
  
  <pre><code>&lt;div id='1'&gt; &lt;p&gt; text 1 &lt;h1&gt; text 2 &lt;/h1&gt; text 3 &lt;p&gt; text 4 &lt;/p&gt; &lt;/p&gt; &lt;/div&gt;
  </code></pre>
  
  <p>I want to get all the text in the div, except for the text that is in the <code>&lt;h&gt;</code>.
  (I want to get "text 1","text 3" and "text 4")
  There may be a few <code>&lt;h&gt;</code> elements, or none at all.
  And there may be a few <code>&lt;p&gt;</code> elements, even one inside the other, or none.</p>
  
  <p>I thought to do this by getting all the html source of the div, and using a regex to remove the <code>&lt;h&gt;</code> elements. But selenium.get_text does not return the html, just the text (all of it!).</p>
  
  <p>I know I can use <code>selenium.get_html_source</code> and then look for the element I need with a regex, but that looks like a waste since selenium knows how to find the element.</p>
  
  <p>Does anyone have a better solution?
  Thanks :)</p>