title: How do I get rid of the tags in XPath
body: <p>I have a bunch of html files with tons of data in it and I want to extract the important parts of it.</p>
  
  <p>The files are all very similar; I've to search for a <code>&lt;tr&gt;</code> which contains a certain keyword. The third column of this table row always contains the name of the "block" I'm searching for (it's a few table rows). </p>
  
  <pre><code>//body/table/tbody/tr[td = "Deployed to"]/td[3]/div//span[text()]
  </code></pre>
  
  <p>with this XPath query I get the names (maybe one, maybe more)
  The problem is, how do I get rid of the tags around the data?</p>
  
  <p>Right now my output is something like this: </p>
  
  <pre><code>&lt;span class="log_entry_text"&gt;Name1&lt;/span&gt;&lt;span class="log_entry_text"&gt;Name2&lt;/span&gt;&lt;span class="log_entry_text"&gt;Name3&lt;/span&gt;
  </code></pre>
  
  <p>I want to have something like that: Name1 Name2 Name3
  So I can use it for extracting these blocks more easily.
  With string() i can only extract the first element (result would be: Name1)</p>
  
  <p>Thanks for helping me!</p>