title: Get contents of <h1> convert them it to text and set as a title of the page
body: <p>I've got following structure of <code>h1</code> element</p>
  
  <pre><code>&lt;h1&gt;
  &lt;a href="#"&gt;My Text&lt;/a&gt; &lt;span&gt;More Text&lt;/span&gt; another text &lt;a href="#"&gt;and a bit more&lt;/a&gt;
  &lt;/h1&gt;
  </code></pre>
  
  <p>How can I get contents from such <code>h1</code> and convert them to text so the output would be <code>"My Text More Text another text and a bit more"</code></p>
  
  <p>and after that place it into the <code>&lt;title&gt;</code> of the page? So no links, spans etc.. Just text?</p>