title: Mixed mode content - How do I select text from h1 but don't include its child element's text?
body: <p>I have trouble printing simple text from a <code>&lt;h1&gt;</code> element:</p>
  
  <pre><code>require 'nokogiri'
  
  doc = Nokogiri::HTML("&lt;h1&gt;&lt;em&gt;Name&lt;/em&gt;A Johnson &lt;/h1&gt;")
  puts doc.at_xpath("//h1").content
  </code></pre>
  
  <p>It outputs:</p>
  
  <pre><code>NameA Johnson
  </code></pre>
  
  <p>I want just <code>A Johnson</code> in the output. Is it possible to select just this text using XPath or CSS selectors?</p>