title: Viewing html text between tags (python, lxml, urllib, xpath)
body: <p>I am trying to parse some html and I want to retrieve the actual html between the tags, but instead my code is giving me what I believe is the location of the elements.</p>
  
  <p>Here is my code so far:</p>
  
  <pre><code>import urllib.request, http.cookiejar
  from lxml import etree
  import io
  site = "http://somewebsite.com"
  
  
  cj = http.cookiejar.CookieJar()
  request = urllib.request.Request(site)
  opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))
  request.add_header('User-agent', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0')
  html = etree.HTML(opener.open(request).read())
  
  xpath = "//li[1]//cite[1]"
  filtered_html = html.xpath(xpath)
  print(filtered_html)
  </code></pre>
  
  <p>Here is a piece of the html:</p>
  
  <pre><code>&lt;div class="f kv"&gt;
  &lt;cite&gt;
  www.
  &lt;b&gt;hello&lt;/b&gt;
  online.com/
  &lt;/cite&gt;
  &lt;span class="vshid"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Currently my code returns: </p>
  
  <pre><code>[&lt;Element cite at 0x36a65e8&gt;, &lt;Element cite at 0x36a6510&gt;, &lt;Element cite at 0x36a64c8&gt;]
  </code></pre>
  
  <p>How do I extract the actual html code between the cite tags? If I add "/text()" to the end of my xpath it gets me closer, but it leaves out what is in the b tags. My ultimate goal is for my code to give me "www.helloonline.com/".</p>
  
  <p>Thank you</p>