title: How get text between two closed tags
body: <p>I'm looking for a jQuery solution</p>
  
  <pre><code>&lt;pre&gt;&lt;marker id="markerStart"&gt;&lt;/marker&gt;
  aaaaa
  &lt;span style='font-family:monospace;background-color:#a0a0a0;'&gt;bbb&lt;/span&gt;bb
  cc&lt;marker id="markerEnd"&gt;&lt;/marker&gt;ccc
  &lt;/pre&gt;
  </code></pre>
  
  <p>How get text between <code>&lt;marker&gt;</code> tags? Should be the following result:
  aaaaabbbbbcc</p>
  
  <p>Example 2 (markerEnd inside SPAN tag):</p>
  
  <pre><code>&lt;pre&gt;&lt;marker id="markerStart"&gt;&lt;/marker&gt;
  aaaaa
  &lt;span style='font-family:monospace;background-color:#a0a0a0;'&gt;b&lt;marker id="markerEnd"&gt;&lt;/marker&gt;bb&lt;/span&gt;bb
  ccccc
  &lt;/pre&gt;
  </code></pre>
  
  <p>expected result: aaaaab</p>
  
  <p>Thanks.</p>