title: Bypass em tags when extracting contents of class name using Parsel selector
body: <p>I'm trying to extract the contents of the class name. How to do I extract all the contents including the ones inside the 'em' tags and after the 'em' tags too? See picture below:</p>
  
  <p><a href="https://i.stack.imgur.com/FrYVv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FrYVv.png" alt="enter image description here"></a>
  I tried the following and these were the results:</p>
  
  <p>Trial 1:</p>
  
  <pre><code>driver = webdriver.Chrome(options=options)
  sel = Selector(text = driver.page_source)
  sel.xpath("//*[@class ='st']").extract()
  </code></pre>
  
  <p>Output 1:</p>
  
  <pre><code>&gt;&gt; &lt;span class="st"&gt;&lt;span class="f"&gt;Nov 26, 2018 - &lt;/span&gt;First #&lt;em&gt;GDPR fine&lt;/em&gt; awarded in Germany. 330,000 user data stolen. Usernames and passwords stored in plaintext. €20,000 &lt;em&gt;fine&lt;/em&gt;. Why "so low"?&lt;/span&gt;
  </code></pre>
  
  <p>Trial 2:</p>
  
  <pre><code>driver = webdriver.Chrome(options=options)
  sel = Selector(text = driver.page_source)
  sel.xpath("//*[@class ='st']/text()").extract()
  </code></pre>
  
  <p>Output 2:</p>
  
  <pre><code>&gt;&gt; First #
  </code></pre>
  
  <p>Ideally, the output I want to get is:</p>
  
  <pre><code>&gt;&gt; Nov 26, 2018 - First #GDPR fine awarded in Germany. 330,000 user data stolen. Usernames and passwords stored in plaintext. €20,000 fine. Why "so low"?
  </code></pre>